[Users] VectorLegend.js

Christian Mayer mayer at terrestris.de
Wed Oct 19 13:15:34 CEST 2011


Hello Hugo, hello Geoffrey, hello all,

Thanks for reporting this issue.
I could reproduce the error and therefore I opened up a ticket [1].
Further discussion should be done there.

Best rergards,
Chris


Am 13.10.2011 16:21, schrieb Hugo:
> Hi,
>
> Well i tried it on a window and still the same error occurs. So it
> is definitely a LegendPanel bug. If i don't use a LegendPanel at all,
> there are no problems.
>
> You are right when saying that it doesn't affect map navigation.
> However, because i'm using 2 different projections in the app
> (spherical mercator and etrs) when reprojection happens, and only
> after removing a vector layer, the map gets confused and gets out
> there in the world but not where it should be. If i don't remove any
> vector layer reprojection works  just fine.
>
> So, in my case, this bug is crashing some fucntionalities.
>
> I'm thinking in a workaround by just defining a specific url for the
> legend of vector layers and have an image on the server. Maybe that
> works but is not a pretty solution specially if you want to give the
> users the possibility to change the style of such layers.
>
> Does someone have more thoughts on this?
>
> Regards,
> Hugo 
>
> On Thu, Oct 13, 2011 at 2:52 PM, gbrun <gbrun at myopera.com
> <mailto:gbrun at myopera.com>> wrote:
>
>     I think I also had this problem with zooming into the map, beside
>     the collapse/expand issue. But in my memories, this problem didn't
>     affect the navigation in the map, did it? I only received error
>     messages in firebug.
>
>     I didn't find a solution to fix this bug: so I isolated the
>     LegendPanel component from the others panels by giving it its own
>     window. Maybe you can try this clue: it could help you to define
>     if it's a LegendPanel bug.
>
>     Geoffrey
>
>
>     Le Thu, 13 Oct 2011 15:30:34 +0200, Hugo <hfpmartins at gmail.com
>     <mailto:hfpmartins at gmail.com>> a écrit:
>
>
>         Hi Geoffrey,
>
>         Indeed i have a viewport with a left panel and a map panel (in
>         center
>         region). My left panel is a tabpanel which has a treepanel and
>         legend panel.
>         The thing is even if i don't collapse the left panel i get
>         this error just
>         by doing a zoom in the map. Even when changing the layout i
>         get the same
>         error. At the moment i have no idea where to start to debug
>         this...
>         How did you solved it? Any more suggestions?
>
>         Thanks in advance,
>         Hugo
>
>         On Thu, Oct 13, 2011 at 12:07 PM, gbrun <gbrun at myopera.com
>         <mailto:gbrun at myopera.com>> wrote:
>
>             Hi Hugo,
>
>             My question would probably be surprising for you! Do your
>             LegendPanel use a
>             "border" layout shared with an other panel (a MapPanel
>             precisely? I got a
>             similar bug: this one appeared when I collapsed/expanded
>             the LegendPanel
>             after removing a layer.
>
>             I'm not sure your problem is related to this one, but perhaps?
>
>             Geoffrey
>
>
>
>             Le Thu, 13 Oct 2011 12:44:27 +0200, Hugo
>             <hfpmartins at gmail.com <mailto:hfpmartins at gmail.com>> a écrit:
>
>
>              Hello all,
>
>
>                 I'm facing a small but annoying problem with vector
>                 legends. I'm using
>                 JSTS
>                 (which i think it is an awesome contribution for
>                 geoprocessing operations
>                 on
>                 the client side) to compute buffers. So the user
>                 defines the parameters to
>                 compute a buffer and a new vector layer is added with
>                 the result. Untill
>                 now
>                 everything is fine, and GeoExt.LegendPanel shows the
>                 legend for this
>                 layer.
>                 In the app, the user has also the possibility to
>                 select several layers and
>                 completely remove them from the map. It is exactly
>                 here that the problem
>                 arises. After removing a vector layer from the map i
>                 start to get an error
>                 related with vectorlegend.js. From that point onwards,
>                 everytime i make a
>                 zoom in the map i get the following error:
>
>                 this.layer is null (on line 256 of vectorlegend.js:
>                 this.layer.map.getScale())
>
>                 This only happens after removing vector layers from
>                 the map. So i thought
>                 i
>                 had to manually remove the layer from the legendpanel
>                 but, as expected,
>                 the
>                 layerstore  of the legendpanel is synchronized with
>                 the mapPanel
>                 layerstore
>                 and, therefore, the layer is no longer present at both
>                 stores.
>
>                 So, what might be the issue happening here?
>
>                 Regards,
>                 Hugo
>
>
>
>
>             --
>             --
>             Geoffrey BRUN
>
>             Étudiant en master SIGMA
>             Stagiaire au PNR du Haut-Languedoc
>
>             Hameau de Brassac
>             Saint-Pons de Thomières
>             +33 (0) 6 77 74 44 16
>             <tel:%2B33%20%280%29%206%2077%2074%2044%2016>
>
>
>
>
>
>
>     -- 
>     -- 
>     Geoffrey BRUN
>
>     Étudiant en master SIGMA
>     Stagiaire au PNR du Haut-Languedoc
>
>     Hameau de Brassac
>     Saint-Pons de Thomières
>     +33 (0) 6 77 74 44 16 <tel:%2B33%20%280%29%206%2077%2074%2044%2016>
>
>
>
>
> -- 
> Hugo Martins
> LabNT - ISEGI UNL
> Campus de Campolide
> 1070-312 Lisboa
> N 38°43'56.84", W 9°9'35.74"
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20111019/d089c5a6/attachment.htm 


More information about the Users mailing list