How to set up the zoom and scale in OpenScale

72 views
Skip to first unread message

Erik kake

unread,
Jun 30, 2010, 9:06:51 AM6/30/10
to openscales-dev

hello
after building my map with Geoserver and preview it with Open layer
Preview, I can now display my Map in Openscale but not with the same
scale.
I took and modify the fx-Global example where I can zoom until 200m,
but the problem wtith this level of zoom is that, certains object can
be display only at less than 200m . this is the case of Bus station in
my Map.

I want to know how I can modify the scale parameter in opensacle to
get all the layer of my map.

Thank you

Erik

Gallien

unread,
Jun 30, 2010, 11:12:59 AM6/30/10
to openscales-dev
Try to change the maxZoomLevel and minZoomLevel parameters on your
layer.

Kyle Wilcox

unread,
Jun 30, 2010, 11:15:55 AM6/30/10
to opensca...@googlegroups.com
check out layer.minResolution / layer.minZoomLevel and
layer.maxResolution / layer.maxZoomLevel

> --
> You received this message because you are subscribed to the Google Groups "openscales-dev" group.
> To post to this group, send email to opensca...@googlegroups.com.
> To unsubscribe from this group, send email to openscales-de...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/openscales-dev?hl=en.
>
>

erik tamno

unread,
Jun 30, 2010, 11:58:09 AM6/30/10
to opensca...@googlegroups.com
Yes kyle

why do I put it inside the code..

this is the part of code where they define informations about de zoom

<os:ControlPanel x="10"
y="10"
width="140"
title="Navigation">
<os:PanComponent map="{map}"/>
<mx:HBox width="100%">
<os:ZoomComponent map="{map}"/>
<mx:VBox width="100%"
horizontalAlign="right"
verticalAlign="top">
<os:ZoomBoxComponent map="{map}"
width="32"
height="32"/>
</mx:VBox>
</mx:HBox>
</os:ControlPanel>

Thank you

----- Message d'origine ----
De : Kyle Wilcox <wilco...@gmail.com>
À : opensca...@googlegroups.com
Envoyé le : Mer 30 juin 2010, 17h 15min 55s
Objet : Re: How to set up the zoom and scale in OpenScale

Gallien

unread,
Jul 1, 2010, 3:57:30 AM7/1/10
to openscales-dev
I don't think you set the zoomlevel in this part of the code.
It is in the definition of the layer like

<os:WFS maxZoomLevel="....." minZoomLevel="....." />

On 30 juin, 17:58, erik tamno <erikta...@yahoo.fr> wrote:
> Yes kyle
>
> why do I put it inside the code..
>
> this is the part of code where they define informations about de zoom
>
>    <os:ControlPanel x="10"
>                      y="10"
>                      width="140"
>                      title="Navigation">
>         <os:PanComponent map="{map}"/>
>         <mx:HBox width="100%">
>             <os:ZoomComponent map="{map}"/>
>             <mx:VBox width="100%"
>                      horizontalAlign="right"
>                      verticalAlign="top">
>                 <os:ZoomBoxComponent map="{map}"
>                                      width="32"
>                                      height="32"/>
>             </mx:VBox>
>         </mx:HBox>
>     </os:ControlPanel>
>
> Thank you
>
> ----- Message d'origine ----
> De : Kyle Wilcox <wilcox.k...@gmail.com>

erik tamno

unread,
Jul 1, 2010, 4:27:44 AM7/1/10
to opensca...@googlegroups.com
Hello Gallien
I think I make a mistake , The problem is probably on the scale or scale Box. this is the screen capture I make for

* OpenLayer when I preview the Map..I use it to build the Map ( witch is Multiple layers in GeoServer) the scale coverage here is
1:5M - 1:147 as you can see in the screen capture.

* You also have the Openscale Capture screen where the maxZoom lebel is 15, and with that level, we cannot access to the last
layer of my Map to see the bus stops for example as you can see in the screen capture.

I think the problem well exlain now.. Thank for any help somebody can give

Erik



----- Message d'origine ----

De : Gallien <labeyrie...@gmail.com>
À : openscales-dev <opensca...@googlegroups.com>
Envoyé le : Jeu 1 juillet 2010, 9h 57min 30s
Objet : Re: Re : How to set up the zoom and scale in OpenScale

--

Open Layer.Layer.JPG
Openscale.Layer.JPG
Reply all
Reply to author
Forward
0 new messages