[Users] hiding the printExtent

Andreas Hocevar ahocevar at opengeo.org
Wed Jul 21 11:21:37 CEST 2010


Hi,

I'd say tearDown() is the right thing to do. I would propose to change two method names as part of our API review before the 1.0 release:

setUp -> show
tearDown -> hide

Marc, if you agree, can you please create a ticket for this change?

Thanks,
Andreas.

On Jul 21, 2010, at 11:07 , Marc Jansen wrote:

> Hi list,
> 
> I am using the PrintExtent-plugin of GeoExt and want to hide a drawn 
> printextent on the mappanel.
> 
> What is the suggested way of doing so?
> 
> The API (http://www.geoext.org/lib/GeoExt/plugins/PrintExtent.html) has 
> no hide()-method. I could easily use the internal tearDown()-method but 
> am unsure if this is the best way of solving my problem.
> 
> Background: I have an accordion and one of the elements contains the 
> printing-form which adds the printExtent to the mappanel. Now when the 
> user decides on opening another accordion element, I want to hide the 
> printextent as to not confuse the user.
> 
> Best regards and thanks in advance,
> 
> Marc
> 
> -- 
> 
>   .................................................................
>    Karten im (Inter|Intra)net?
> 
>    OpenLayers - Webentwicklung mit dynamischen Karten und Geodaten
>    von M. Jansen und T. Adams, OpenSourcePress, München.
> 
>    ISBN: 978-3-937514-92-5
>    URL:  http://openlayers-buch.de
>   .................................................................
> 
> 
>   Dipl.-Geogr. Marc Jansen
>   - Anwendungsentwickler -
> 
>   terrestris GmbH&  Co. KG
>   Irmintrudisstraße 17
>   53111 Bonn
> 
>   Tel:    ++49 (0)228 / 96 28 99 -53
>   Fax:    ++49 (0)228 / 96 28 99 -57
> 
>   Email:  jansen at terrestris.de
>   Web:    http://www.terrestris.de
> 
>   Amtsgericht Bonn, HRA 6835
>   Komplementärin:  terrestris Verwaltungsgesellschaft mbH
>   vertreten durch: Hinrich Paulsen, Till Adams
> 
> 
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list