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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -