pigochu/yii2-jquery-locationpicker

Remove Default Value

deshario opened this issue · 2 comments

How can i remove default value of campaign_coordinates ... I wanna make user select manually ... In this case .. either user dont select location ... it will be default value ... I wanna show error message below the campaign_coordinates field if user dont select location.

remove22

remove

#5 (comment)

I clear default value like this :

document.getElementById('campaigns-campaign_coordinates').value = '';

Is it possible to hide default marker also ... how can we do that

@deshario

please read google map document

https://developers.google.com/maps/documentation/javascript/examples/marker-remove

You can get google map instance , ex: var map = $("your-coordinates-id').locationpicker("map").map;