Add custom marker icon / graphic
There should be a way to upload a custom icon / graphic for the map marker(s). I know this is possible through the google maps API using var image = 'customimage.png';
I believe adding this functionality to the snazzymaps web interface would be incredibly useful for custom styles. OR, This functionality should at least be added to the wordpress plugin, so a custom marker can be set alongside the styled maps.
We would really like to add something to make it easier for people to add markers to the map. We will be looking into some solutions in the future but if anyone has any suggestions, please comment here.
-
Rafael commented
I'm also looking into the possibility to add an image to the popup of the marker, but haven't been able to find any kind of rich text or html editor for the popup. Is there some kind of developer mode?
Thanks for the help. Highly appreciated. -
Noé commented
I wish to show only my business location icon not all of them.
-
Anonymous commented
how to use multiple map marker snazzy maps plz tell me about this option
-
AdminAdam Krogh (Admin, SnazzyMaps) commented
Hi Alan,
This isn't possible with only custom styles. Styles apply to all features/elements on the map, regardless of country or region.
You could possible highlight countries using a fusion tables layer like this:
-
Alan commented
can we mark some areas on the map by RANDOM colors ? for example poland by red, vietnam by gold etc.?
-
Georges commented
Hey guys,
Just did this
var customMarker = '../path/to/your/custom/icon.png';
var marker = new google.maps.Marker({
position: new google.maps.LatLng(-36.8705484, 174.7435102),
icon: customMarker,
map: map,
title: 'yo'
});working pretty fine
-
AdminAdam Krogh (Admin, SnazzyMaps) commented
Hi,
We would really like to add something to make it easier for people to add markers to the map. We will be looking into some solutions in the future but if anyone has any suggestions, please comment here.
Thanks!
-
NS commented
Hi! Have there been any updates to this?
-
Melkiades commented
Hi there,
Has this been addressed? I find it a bit odd that your logo is a marker but we can't use them on maps.
Regards
-
Eric commented
I understand that. In my situation, I have maps that are automatically created for each event on my website (usually 70 - 100 or so at a time). So the snazzymaps plugin is great b/c it will automatically add the styling to all those maps. The icing on the cake would be a custom marker.
Most of the plugins that allow for a custom marker, require each individual map to be created manually, versus automatically applying styles to maps that are already created. At least that is what I have found so far.
Anyhow, I thought it would be a cool feature. Another possibility would be if a developer with an API key was able to edit the javascript array that get's created for the map styles. Then we could just insert a few more lines of code to add the custom marker ourselves.