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
|
||||
this.map.remove();
|
||||
layerManager.setLayerId(vnode.attrs.layerId);
|
||||
setupMap(vnode);
|
||||
this.map = setupMap(vnode);
|
||||
|
||||
} else {
|
||||
//position/zoom change
|
||||
//this.map.setView([+vnode.attrs.lat, +vnode.attrs.lon], +vnode.attrs.zoom);
|
||||
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
onremove(){
|
||||
|
Loading…
Reference in New Issue
Block a user