Posts

Post not yet marked as solved
2 Replies
1.3k Views
I have an Ionic App which makes my map run in all browsers. It runs in Safari, Chrome, Android Native (Web View for Android), and iOS Native (WKWebview). However, in iOS and and Android Native (Not running Safari/Chrome to go to a website) the titles for annotations aren't shown below the MarkerAnnotation. They are shown for everything else. Any idea why?Safari vs. WKWebView (I'm not sure why the images aren't showing)
Posted
by Erickit.
Last updated
.
Post not yet marked as solved
1 Replies
360 Views
I've noticed bugs when you attempt to modify a map (set region or other things) immediately after creating the map. I noticed that if you load mapkit, wait 5 seconds then create a map, it makes about 5 network calls, downloads a js file, and runs some javascript. I have an issue where I have to do some loading after the map is fully ready, and may need to destroy the original map. To make a test of this, try creating a map then immediately call destroy and unmounting it. It'll produce a bunch of not defined errors as it's still trying to set up the map you just destroyed How do I know that the map that was created is ready and done with all the work it was doing? When is it safe to destroy that map? I found there is a property called map._impl.state that will be Initialized or Ready. But when it gets to Ready it is still not fully done loading, a destroy there will still cause errors. Is there an event listener or any way to tell that a map is completely done initializing and drawing on the screen? Currently I'm just using a timeout after the map._impl.state goes to Ready, but that's a terrible solution.
Posted
by Erickit.
Last updated
.
Post not yet marked as solved
0 Replies
280 Views
I have large overlays that cover the entire map. The 'single-tap' click event does not run when clicking inside of these Polygon Overlays. How can you pass clicks through an overlay?
Posted
by Erickit.
Last updated
.
Post not yet marked as solved
2 Replies
430 Views
I create a map with a coordinate region in the constructor. Then, I later call `map.setRegionAnimated(coordinateRegion, false);` with the same exact coordinate region. This results in a more zoomed in map. Further calls to setRegionAnimated result in the same zoomed in map.Is there a reason the region passed in the constructor results in a different map than the same region passed into setRegionAnimated?Calling `map.region` after each call also produces the same result.
Posted
by Erickit.
Last updated
.
Post not yet marked as solved
0 Replies
379 Views
I've tried to review the documentation but didn't find anything. I'm trying to have a map event fire on click through an annotation. The event is: map.addEventListener('single-tap',This works fine when clicking on the map, but if an annotation is in the way, it doesn't run. I have custom annotations on my map that are set to `enabled: false`. So they cannot be selected, but the click still doesn't pass throughI'm trying to click on the map, to get coordinates, through an annotation that isn't enabled. Is this possible?I've tried to set pointer-events: none on all the elements in my annotaiton with no luck.I'm a huge fan of mapkit js, appreciate all the work.
Posted
by Erickit.
Last updated
.