This commit is contained in:
Alexis Métaireau 2024-01-30 16:21:01 +01:00
parent 74ea6d800c
commit 27cbd979ea

View file

@ -1,6 +1,15 @@
L.U.FeatureMixin = {
staticOptions: { mainColor: 'color' },
sync: function(properties){
if ('latlng' in properties)
this._latlng
},
renderProperties: function(properties){
},
initialize: function (map, latlng, options) {
this.map = map
if (typeof options === 'undefined') {
@ -562,6 +571,7 @@ L.U.Marker = L.Marker.extend({
function (e) {
this.isDirty = true
this.edit(e)
this.sync(["latlng"])
},
this
)