[OpenLayers-Dev] .JPG image in OverviewMap

XinGang Li slinavlee at gmail.com
Wed May 6 01:24:41 EDT 2009


You can use the OpenLayers.Layer.Image with one zoom level in your overview
map, like this:
         var imageLayer = new OpenLayers.Layer.Image(
                "ImageLayer",
                "test.jpg",
                new OpenLayers.Size(150, 150),
                {numZoomLevels: 1, alwaysInRange: true}
            );

On Tue, May 5, 2009 at 6:12 PM, Jean-Daniel JDG. GONON <jdg at geosphere.fr>wrote:

>  For my question :
>
>
> I can’t specify LAYER attribut of overviewMap control, because this JPG
> image is generated by an admin according wanted layers mapfile’s (it’s
> generated when it’s necessary) : the wanted layers can change often, so I
> can’t modify LAYER attribute each times.
> Selected layers by the admin in the JPG image aren’t saved elsewhere.
>
> Zooming function doesn’t interrest me : the JPG image has 150*150px
> resolution, and I want always display the full map in OverviewMap (whatever
> the scale and the current position in OpenLayers map).
> But I want to keep a moving function between OpenLayers map and
> OverviewMap...
>
> Thank you in advance.
> JDG
>
>
>  ------------------------------
>
> *De :* Jean-Daniel JDG. GONON
> *Envoyé :* lundi 4 mai 2009 14:14
> *À :* 'dev at openlayers.org'
> *Objet :* .JPG image in OverviewMap
>
>
>
> Hi all,
>
>
>
> Is it possible to load a .JPG image in the overview map control ?
>
>
>
> In my application, a JPG mini-map is generated by an admin according to
> layers selected or not.
>
> I want to load this JPG image (with a point to locate the current
> position), with a fixed size and without zoom function.
>
>
>
> Thank you for answers
>
> JDG
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>


-- 
Li XinGang
EMail: slinavlee at gmail.com
Blog:   avlee.cnblogs.com
Site:    www.mapboost.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20090506/26b2f61b/attachment.html


More information about the Dev mailing list