I'm using MapKit JS to plot markers on a Map - so far so good. I've noticed that it doesn't always show the Suburb name for the location of the marker . Here's an example:
The marker is located in Hornsby which isn't showing on the map. If I move the market to an adjacent suburb Wahroonga I get the following:
Now Wahroonga isn't showing but Hornsby is showing. I'm trying to find if there's a control that determines when the suburb for the marker is shown or not but haven't been able to find anything so far.
I would also like to know if I can control the visibility of suburb names at different zoom levels. If you look at this map you can see the names of various suburbs (Bondi, Bondi Beach, North Bondi etc):
but when I zoom in one level these all disappear and I cannot easily locate which suburb the market is in:
Is there a way to always show the suburb names so users can easily locate themselves on the map in reference to the suburbs that they might not be familiar with?
Post
Replies
Boosts
Views
Activity
Is it possible to replace the default balloon marker with our own image that we store on a URL? I've played around with changing the glyphText but would like to use our own images instead of the balloon if this possible.
I'm working with MapKit JS for the first time. I'm using the 'Annotations With a Custom Callout' sample code as my starting point as my map will need to work in a similar way to this one.
I've got the basics working but I would now like to specify the center coordinates for the map but can't get this to work and not sure of the correct syntax.
For example if I wanted that map to centre around these coordinates:
(37.8184493, -122.478409)
I'm not sure where/how to specify these. I've tried adding:
var center = new mapkit.Coordinate(37.8184493, -122.478409);
after:
const map = new mapkit.Map("map");
but this doesn't change how the map is displayed. Appreciate if someone can show me where/how to specify the center coordinates for this type of map.