pigochu/yii2-jquery-locationpicker

Marker Title not changed

deshario opened this issue · 2 comments

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"

marker title

CODE

$changedjs = <<<EOT
function (currentLocation, radius, isMarkerDropped) {
var mapContext = $(this).locationpicker('map');
console.log(mapContext);
}
EOT;

image

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 .
image

This code can work !!
If id is test

$("#test").locationpicker("map").marker.setTitle("wa ha ha");