Marker Title not changed
deshario opened this issue · 2 comments
deshario commented
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;
pigochu commented
I think you need post your request to jquery-locationpicker-plugin
https://github.com/Logicify/jquery-locationpicker-plugin
pigochu commented
This code can work !!
If id is test
$("#test").locationpicker("map").marker.setTitle("wa ha ha");