|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jub Smarty n00b
Joined: 09 Aug 2008 Posts: 1
|
Posted: Sat Aug 09, 2008 12:02 pm Post subject: googleMapApi custo sidebar icon |
|
|
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 |
|
Back to top |
|
|
|
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
|