geo code change marker

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 31, 2011   (RSS)

Re: [Maurice] geo code change marker

By Jason - May 30, 2011

Hi Maurice,

Markers are actually being added in the addMarker() function, so that's where you need to make the change. For example:

//
function _geocoder_addMarker(latitude, longitude, recordNum, detailLink) {
var image = 'marker.png';
var latLng = new google.maps.LatLng(latitude, longitude);
var infowindowEl = document.getElementById('marker_infowindow_' + recordNum);
var marker = new google.maps.Marker({ map: map, position: latLng, icon: image });
google.maps.event.addListener(marker, 'click', function() {
if (infowindowEl) {
infowindow.setContent(infowindowEl.innerHTML);
infowindow.open(map, marker);
}
else {
window.location = detailLink;
}
});
bounds.extend(latLng);
}


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] geo code change marker

By Maurice - May 31, 2011

Jason THANK YOU VERY MUTCH !!!!!!!!!!!!!!!!!!!!!!!!

u r the best
-------------------------------------------

Dropmonkey.nl