javascript - How to add Overlaying rectangular SVG blinking border to a particular marker(center) on Google Maps -
i have different names , latitude , logitude , want highlight particular marker blinking rectangular border, can add svg code particular marker. don't know svg code can 1 suggest how add.
how add overlaying svg blinking rectangular border blinking particular marker,
<html> <head> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> </head> <body> <div id="map" style="width: 1330px; height: 850px;"></div> <script type="text/javascript"> var locations = [ sthowbga01_atif_rnid_l015,24.31026,93.56268, swkhmrid01_bilf_rnid_l039,25.65182,91.62737, smokzunb01_gtlf_rnid_l006,26.019,94.53, sdimsgrn01_atcf_rnid_l023,25.8271,93.6853, skohkrma01_bilf_rnid_l010,25.5815,94.21959, smokangb01_bilf_rnid_l001,26.214,94.6876, sdimdim087_atif_ttid_l026,25.8939,93.7602, swkhlynki1_gtlf_rnid_l061,25.5041,91.6109, simwimp109_atcf_ttod_l047,24.83982,93.97707, sdimzluki2_atcf_rnid_l017,25.63998,93.66512, gwtrtlmur5_bilf_rnod_l039,23.841,91.6202, gwtrklbri1_bilf_rnod_l017,23.50866,91.26185, gwtrbxngr1_bilf_rnod_l033,23.61268,91.17243, gwtragr101_bilf_ttod_l055,23.8655,91.25584, gwtrbis007_bilf_rnod_l022,23.6785,91.2963 ]; var map = new google.maps.map(document.getelementbyid('map'), { zoom: 17, center: new google.maps.latlng(24.31026,93.56268), maptypeid: google.maps.maptypeid.roadmap }); var infowindow = new google.maps.infowindow(); var marker, i; (i = 0; < locations.length; i++) { marker = new google.maps.marker({ position: new google.maps.latlng(locations[i][1], locations[i][2]), map: map }); google.maps.event.addlistener(marker, 'mouseover', (function(marker, i) { return function() { infowindow.setcontent(locations[i][0]); infowindow.open(map, marker); } })(marker, i)); } google.maps.event.adddomlistener(window, 'load', latlng); </script> <div id="map-canvas"></div> </body> </html>
please suggest, thanks.
you need create svg symbol desire first , associate them markers. although think have make custom icon , embed in marker class because if want customize marker icons can customize them whole , not put border on it. here's svg docs create custom marker icon. and, here's sample code google embed them in marker class.
hope helped.
Comments
Post a Comment