google maps - Jquery LocationPicker plugin - inputBinding with external function -
i want change inputbindings values through external function.for example have 2 inputs ids "lati" , "longi" respectively.
when change values of both inputs manually ,marker goes direction typed.
but when try change values through external function clicking anchor,such
function(){ $("#lati").val("41.014552663073545"); ...
marker go point changed. so,how move marker through external function
instead of changing values of lati , longi (which not affect declared marker), if want use existing marker , change it's location want first change value in external function following:
var newlatlng = new google.maps.latlng(lati, longi); marker.setposition(newlatlng);
Comments
Post a Comment