1
0
forked from MTSR/mapserver

state tracking / re-render

This commit is contained in:
Thomas Rudin 2019-12-01 18:44:36 +01:00
parent 236f8d8997
commit cad7f07945

View File

@ -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(){