pigochu / yii2-jquery-locationpicker

jquery location picker widget for yii2
20 stars 7 forks source link

Marker Title not changed #27

Open deshario opened 6 years ago

deshario commented 6 years ago

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

pigochu commented 6 years ago

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 commented 6 years ago

This code can work !! If id is test

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