Ok, thanks for helping us Mauro!
Prachi: I also saw a couple of things:
- Heron 0.75 is used, this is a very old version, try to upgrade to 1.0.0
- the WMS Layer called 'None' is in your config XML
- the WFS XML file contains only requests never responses
(FeatureCollections)
yes in general: getDataExtent() mostly applies to Vector Layers. Null is
returned for raster layers. All Layer types have a 'maxExtent' (Bounds
object). If not explicitly configured this will be the Map's Bounds, so
getMaxExtent() always has a meaningful value.
This triggered me at least to enhance the Layer Menu Context for 'zoom
to extent' to also allow zooming for Layers that have 'maxExtent' set.
Though this may not help in your case (dynamic extent) it is still a
useful feature IMO:
https://code.google.com/p/geoext-viewer/issues/detail?id=328
best,
Just
> <mailto:
prachi...@gmail.com>>
> <mailto:
prachi...@gmail.com>>
> gupta escribi�:
>
> Hi,
>
> I am new to Openlayers and trying to build using
> Heron Library, Openlayers and Geoserver. The
> projection system is in 32643 and maxExtent and
> center has been set.
>
> Ext.namespace("Heron.options.__map");
> Heron.options.map.settings = {
> projection: 'EPSG:32643',
> units: 'm',
> resolutions:
> [0.01,0.05,0.1,0.2,0.3,0.4,0.__6,0.6,0.8,0.9,1,2,3,4,5,10,20,__50,100],
> maxExtent: '-104929,-56303,128235,113521'__,
> zoom: 5,
> theme: null
> };
>
> I am creating array of layers having a default
> blank base layer , a WMS layer filtered using
> viewParams on a attribute, and a vector layer.
>
> The WMS layer after loading(or before loading)
> should zoom to its extent. I am registering
> Loadend event on the layer as-
>
> var layer1 = Heron.options.map.layers[1];
> layer1.events.register('__loadend', layer1,
> function(evt){
>
> Heron.App.getMap().__zoomToExtent(layer1.__getDataExtent());
> });
>
> But the map's zoom bar goes to highest zoom
> level and screen remains with pink tiles. On
> removing the event does not gets helpful. Need
> some hint, m i missing something? Any help on
> debugging where my map is failing could be
> helpful too..
>
> --
> --
> You received this message because you are subscribed
> to the Google
> Groups "geoext-viewer-devel" group.
> To post to this group, send email to
>
geoext-vi...@googlegroups.com
> <mailto:
geoext-vi...@googlegroups.com>
> <mailto:
geoext-viewer-devel%2Bunsu...@googlegroups.com>
> <mailto:
geoext-viewer-devel%2Bunsu...@googlegroups.com>.
> *THANKS & REGARDS
> PRACHI GUPTA
> *
>
> --
> --
> You received this message because you are subscribed to
> the Google
> Groups "geoext-viewer-devel" group.
> To post to this group, send email to
>
geoext-vi...@googlegroups.com
> <mailto:
geoext-vi...@googlegroups.com>
> <mailto:
geoext-viewer-devel%2Bunsu...@googlegroups.com>
> <mailto:
geoext-viewer-devel%2Bunsu...@googlegroups.com>.
> <mailto:
geoext-vi...@googlegroups.com>
> <mailto:
geoext-viewer-devel%2Bunsu...@googlegroups.com>
> <mailto:
geoext-viewer-devel%2Bunsu...@googlegroups.com>.
> *THANKS & REGARDS
> PRACHI GUPTA
> *
>
>
>
>
> --
> *THANKS & REGARDS
> PRACHI GUPTA
> *
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "geoext-viewer-devel" group.
> To post to this group, send email to
>
geoext-vi...@googlegroups.com
> <mailto:
geoext-vi...@googlegroups.com>
> <mailto:
geoext-viewer-devel%2Bunsu...@googlegroups.com>
> <mailto:
geoext-viewer-devel%2Bunsu...@googlegroups.com>.
> You received this message because you are subscribed to the Google
> Groups "Heron Mapping Client Development" group.
> To unsubscribe from this group and stop receiving emails from it, send