javascript - Updating google map maker opacity without reloading the page -
i updating google map marker opacity per slider(telerik control) value, it's needs reload page make marker opacity updated. without reloading page.
here code:
$("#slider").kendoslider({ change: slideronchange, slide: slideronslide, min: 0, max: 1, smallstep: 0.1, largestep: 1, value: 0.8 }); function slideronslide(e) { sliderval =e.value; } marker = new google.maps.marker({ map: map, title: loan , position: latlngset, animation: google.maps.animation.drop, icon: new google.maps.markerimage(icon) }); marker.setoptions({'opacity': parsefloat(sliderval)})
many many in advance..!!
change slideronslide
event
function slideronslide(e) { sliderval =e.value; marker.setoptions({'opacity': parsefloat(sliderval)}) }
it work long marker in appropriate scope , it's not replaced instance in meantime.
Comments
Post a Comment