mirror of
https://github.com/umap-project/umap.git
synced 2025-05-06 14:31:50 +02:00
WIP
This commit is contained in:
parent
74ea6d800c
commit
27cbd979ea
1 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,15 @@
|
||||||
L.U.FeatureMixin = {
|
L.U.FeatureMixin = {
|
||||||
staticOptions: { mainColor: 'color' },
|
staticOptions: { mainColor: 'color' },
|
||||||
|
|
||||||
|
sync: function(properties){
|
||||||
|
if ('latlng' in properties)
|
||||||
|
this._latlng
|
||||||
|
},
|
||||||
|
|
||||||
|
renderProperties: function(properties){
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
initialize: function (map, latlng, options) {
|
initialize: function (map, latlng, options) {
|
||||||
this.map = map
|
this.map = map
|
||||||
if (typeof options === 'undefined') {
|
if (typeof options === 'undefined') {
|
||||||
|
@ -562,6 +571,7 @@ L.U.Marker = L.Marker.extend({
|
||||||
function (e) {
|
function (e) {
|
||||||
this.isDirty = true
|
this.isDirty = true
|
||||||
this.edit(e)
|
this.edit(e)
|
||||||
|
this.sync(["latlng"])
|
||||||
},
|
},
|
||||||
this
|
this
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue