Forum:Limitation on the googlemaps "icons" property

Hi,

As a follow up for http://www.wikia.com/index.php?title=Forum:Googlemaps_extension:_personalized_marker_icons_not_working_%28fixed%29&t=20100102173852 here's a better qualification

"icons": it's supposed to be a URL template using {label} to replace with each marker name ex: http://myserver.com/{label}.png and on the each marker (iconName)xxx,yyyy

the problem is that if iconName contains '/','.' or some other specials characters, the replacement don't work. So this is a big limitation if you can't have all the icons of the map in the same directory.

Can you think of any workaround ?

thanks, JB

10:41, January 3, 2010 (UTC)


 * On wich Wikia wiki do you encounter a problem with the extension ? — TulipVorlax 12:56, January 3, 2010 (UTC)


 * on marveluniversemap.wikia.com . take this page for example: http://marveluniversemap.wikia.com/wiki/Category:New_York_City_616
 * basically I guess I'd like to set icons={label} so that I could specify the URL on each marker line
 * thanks, JB


 * On the extension page we can read that support for custom icons will get improve some day.
 * Are you using the map editor that permit to choose an incon ?
 * http://img689.imageshack.us/img689/9170/10122009044225030120102.jpg
 * Too bad it doesn't seems to be able to reload and modify existing data. — TulipVorlax 01:33, January 4, 2010 (UTC)


 * Uhu! It can reload the existing map : you have to put the googlemap tag on their own lines.
 * But when i click the existing icon, the map is jumping somewhere... — TulipVorlax 01:36, January 4, 2010 (UTC)


 * Actually, I don't have the button left to the "B" (bold) button in the source editor that I can see in your screenshot. So I'm writing the code directly.
 * From what I see in your screenshot, it seems the map editor allows you to choose any capitalized letter which is consistent with the default value for icons="http://maps.google.com/mapfiles/marker{label}.png" and this works well in the code as well
 * 

(W)45.763511,4.835615,my hometown
 * but if I want to use http://maps.google.com/mapfiles/markerA.png for one marker and http://maps.google.com/mapfiles/kml/shapes/hiker.png for another marker, this doesn't work. My solution here would be to have icons=http://maps.google.com/mapfiles/{label}.png and for each marker (markerA) or (kml/shapes/hiker). but this doesn't work (because of the '/' ?). I was wondering maybe I'd have to escape the '/' ?
 * Anyway if it's listed in the known problems, I'll just have to wait :(
 * thanks, JB
 * I've just realized I've got the map button only if I create a template.... JB