Uh oh!
There was an error while loading. Please reload this page.
MapView to support MKPointAnnotation using new attribute annotate in Map... - #810
MapView to support MKPointAnnotation using new attribute annotate in Map...#810ginamdar wants to merge 4 commits into
Conversation
ginamdar
commented
Apr 11, 2015
Please review the changes for supporting annotation inside MapView |
There was a problem hiding this comment.
This is never going to remove the pin, right?
ginamdar
commented
Apr 11, 2015
Yes correct |
nicklockwood
commented
Apr 11, 2015
Wouldn't it make more sense to provide an array of pins? Also, we'd really want to be able to remove them. We could do that by maintaining a dictionary of annotations keyed by coordinate internally and when the array is updated we'd remove the ones that are no longer in the array. |
… remove the old pins and add new ones
dvdhsu
commented
Apr 16, 2015
Running UIExplorer, going into MapView, and tapping on the annotation freezes the app. I've tried this with a blank project with MapView, along with an ordinary annotation; same problem. Occurs in both simulator and device. Inspecting memory usage via Xcode reveals that after annotation is tapped, memory usage keeps on rising, and CPU suddenly jumps to ~180%, and stays around there. |
nicklockwood
commented
Apr 16, 2015
That's weird … I'm seeing this on iOS 8.1 simulator, but not on iOS 8.3 |
nicklockwood
commented
Apr 16, 2015
OK, I've found the problem. I'm landing a fix ASAP, but in the meantime if it's blocking you, you can fix it by replacing the layoutSubviews method in RCTMap.m with |
matth3wga0
commented
Apr 17, 2015
Why shouldn't the annotation be a At least provide a way to customize the annotation, replace the default drop pin on iOS, leverage the appearance between iOS and Android. |

MapView to support Pin annotation