Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

GoogleMapApi Question

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
zfreidus
Smarty n00b


Joined: 05 Nov 2006
Posts: 4
Location: Boca Raton, FL

PostPosted: Fri Oct 26, 2007 2:01 am    Post subject: GoogleMapApi Question Reply with quote

I'm trying to plot multiple markers on a map, using different icons for each marker.

According to the documentation, setMarkerIcon should be used to set the icons for all markes and addMarkerIcon should be used to set just one.

I call $map->AddMarkerByAddress several times adding markers using the generic "red" google style marker.

Then I call $map->AddMarkerIcon to set a custom icon

Then I call $map->AddMarkerByAddress again

Then $map->printmap()

I would expect the first set of markers to be generic and the last one which is called after AddMarkIcon to use the custom icon.

However, what I'm finding is that when called in this sequence, they all show the custom icon.

Does anyone know the proper sequence/procedure to do this?

Thanks,

Zev Freidus
http://www.BocaExecutiveRealty.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP