yii2-jquery-locationpicker
yii2-jquery-locationpicker copied to clipboard
Marker Title not changed
I am trying to access title from map... but title's always same "Drag Me" its not changing .... how can i access the marker title properly.
Example : If i select the "bangkok hospital" from map .. the title i need is "Bangkok Hospital"
CODE
$changedjs = <<<EOT function (currentLocation, radius, isMarkerDropped) { var mapContext = $(this).locationpicker('map'); console.log(mapContext); } EOT;
I think you need post your request to jquery-locationpicker-plugin https://github.com/Logicify/jquery-locationpicker-plugin
I think you could modify it by jquery .
This code can work !! If id is test
$("#test").locationpicker("map").marker.setTitle("wa ha ha");