yii2-jquery-locationpicker icon indicating copy to clipboard operation
yii2-jquery-locationpicker copied to clipboard

Marker Title not changed

Open deshario opened this issue 6 years ago • 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

deshario avatar Jul 20 '18 10:07 deshario

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

pigochu avatar Jul 20 '18 13:07 pigochu

This code can work !! If id is test

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

pigochu avatar Jul 20 '18 13:07 pigochu