javascript - What do display custom icon for google map Marker? -
currentposition = new google.maps.latlng(location.coords.latitude, location.coords.longitude); var mapoptions = { center: currentposition, zoom: 15, maptypeid: google.maps.maptypeid.roadmap, }; map = new google.maps.map(document.getelementbyid("map-canvas"), mapoptions) var home_marker = new google.maps.marker({ position: currentposition, map: map, icon: "../images/02_button_add.png" });
above code google map api , trying display custom icon on map. however, when delete icon file folder. map still show icon.
anyone knows happen?
if need display icon same folder, change file name , hard reload browser. if wish display default google marker remove icon property of marker code , hard reload browser
Comments
Post a Comment