You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using my previouse expearence adding control looks like this:
map.addControl(new L.MeasureControl());
But there is nothing happened. There was no errors. It looks like browser dont know what to do with this plugin: "Ok, I see your plugin, but I do not got your idea, what you want from me".
Also I didn't find any hints of adding control like this
var map = new L.Map('map', {
MeasureControl: true,
MeasureControl.options: {
position: 'topright'
}
});
or
var Map = L.map('map', options);
var measureControl = L.Control.Measure(options);
measureControl.addTo(Map);
So, how to add this plugin to map?
Thank you in advance.
The text was updated successfully, but these errors were encountered:
Plugin placed in the end of file(last 10%)
I add several changes(delete miles and NM, and change range of dyslplaying distance). As example I used Geomixer map http://maps.kosmosnimki.ru/api/index.html There is 5th button control(with pin).
Also I think that it is better to add div with distance, but I dont know how to add listener to vertexes and lines.
And may be add possible to put 'center' vertex not only at center?
Пятница, 11 марта 2016, 0:23 +03:00 от Yohan Boniface [email protected]:
Firstly, I add some strings to my project:
As I understand measure Control need Leaflet.Editable.js
Secondly, I add map
Using my previouse expearence adding control looks like this:
But there is nothing happened. There was no errors. It looks like browser dont know what to do with this plugin: "Ok, I see your plugin, but I do not got your idea, what you want from me".
Also I didn't find any hints of adding control like this
So, how to add this plugin to map?
Thank you in advance.
The text was updated successfully, but these errors were encountered: