Marker Color Dealer Locator

Permalink Browser Info Environment
How do I change the marker colour on the map in the dealer locator depending on type.
ie) type customer blue marker, type wholesaler reen marker.
Thanks
Jay

Type: Discussion
Status: New
winewise
View Replies:
FatTony1952 replied on at Permalink Reply
FatTony1952
I'm currently working on a similar function for this. So far, I have this (which isn't working, but I feel like I'm on the right track) and starts around line 105:

var infoWindow = new google.maps.InfoWindow({content: html});
         ////this will hopefully produce a custom icon////
         if(r.type && resultConfig<?php   echo $controller->bID?>.type == "Some Type"){
            var image = 'path to your image';
              var marker = new google.maps.Marker({
                     position: point, 
                    map: map<?php   echo $controller->bID?>,
                  title:r.name,
               icon: image
              });
         } else {
         ///////////////////////////////
           var marker = new google.maps.Marker({
               position: point, 
               map: map<?php   echo $controller->bID?>,
FatTony1952 replied on at Permalink Reply
FatTony1952
Anyone else been trying to do this and could add to the convo?

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.