forked from MTSR/mapserver
state tracking / re-render
This commit is contained in:
parent
236f8d8997
commit
cad7f07945
@ -40,13 +40,14 @@ export default {
|
|||||||
//layer changed, recreate map
|
//layer changed, recreate map
|
||||||
this.map.remove();
|
this.map.remove();
|
||||||
layerManager.setLayerId(vnode.attrs.layerId);
|
layerManager.setLayerId(vnode.attrs.layerId);
|
||||||
setupMap(vnode);
|
this.map = setupMap(vnode);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//position/zoom change
|
//position/zoom change
|
||||||
//this.map.setView([+vnode.attrs.lat, +vnode.attrs.lon], +vnode.attrs.zoom);
|
//this.map.setView([+vnode.attrs.lat, +vnode.attrs.lon], +vnode.attrs.zoom);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
onremove(){
|
onremove(){
|
||||||
|
Loading…
Reference in New Issue
Block a user