Custom Markers/Icons
Permalink Browser Info Environment
I thought this would be beneficial to anyone who may be using this package. I have a client that wants to use a custom icon marker for all of their locations. After digging into it a bit, I came up with a solution.
In the view.php file find this line
First you'll want to let the map know that there is a new variable for the icon marker. So, just before the code above you will want to add this line:
Now, you will want to pull this into your map by editing the original marker code (above), so your new code will look like this:
You may want to create a custom template in the templates folder so you can always have your original as a back up.
In the view.php file find this line
var marker = new google.maps.Marker({ position: point, map: map<?php echo $controller->bID?>, title:r.name, });
First you'll want to let the map know that there is a new variable for the icon marker. So, just before the code above you will want to add this line:
var image = '<?php echo $this->getThemePath()?>/yourimage.png';
Now, you will want to pull this into your map by editing the original marker code (above), so your new code will look like this:
You may want to create a custom template in the templates folder so you can always have your original as a back up.
Type: | Discussion |
---|---|
Status: | New |
Works Great..!!!