To the inner level this maps down to the function
onMapZoom: function() {
this.setCurrentScaleDenominator(
this.layer.map.getScale()
);
},
And by inspection this.layer is undefined.
How can this be?
Removing the layer with any combination of (one or both)
map.removeLayer(layer) and
layer.destroy()
gives the same result.
best regards,
Frank
_______________________________________________
Users mailing list
Us...@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
if your legend is auto-created from a MapPanel's layers store, this
should not happen. If you build your legend manually, you have to
delete a layer's legend before you destroy the layer.
Andreas.
> _______________________________________________
> Users mailing list
> Us...@geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.