Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

googleMapApi custo sidebar icon

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
jub
Smarty n00b


Joined: 09 Aug 2008
Posts: 1

PostPosted: Sat Aug 09, 2008 12:02 pm    Post subject: googleMapApi custo sidebar icon Reply with quote

hi,
I've been playing around with the php class and it's really easy and great;

but I encountered one problem: how to display the marker icon in the sidebar or better, how to customize it with a new, smaller icon;

I've found this line:

Code:
$_output .= "sidebar_html += '<li class=\"gmapSidebarItem\" etc.


and if I enter the url to the image it works; but I've to distinguish between two different icons dependent on a variable I get from the db.

So I would like it to work as within the map:

Code:

if($type[$a] == "library"){
  $map->addMarkerIcon('iconLibrary.png' etc.
}
else {
  $map->addMarkerIcon('iconShop.png' etc.   
}


any ideas? I'd be really happy to work this out Wink
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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