[OpenLayers-Users] Overview map image offset
BrainDrain
paulborodaev at gmail.com
Tue Sep 30 14:37:22 EDT 2008
my own answer:
if my main map has tiled base layer(1) with gutter>0 and I use it for
creating (by cloning) untiled overview layer{2} of my minimap control then I
need not only set gutter=0 but in addition:
imageSize = new OpenLayers.Size(...,...) (otherwise 1st layer tileSize (with
applied gutter) will be used)
and imageOffset = new OpenLayers.Pixel(0,0).
BrainDrain wrote:
>
> Hi
> I use tiles for my map (mapserver layer)
> but I want my overview map to be untiled (single tile mode)
> but when I set gutter (16px) I have unwanted offset of my overview map
> image in overview control
> because it's single tile inherits this style
>
> element.style {
> height:90px;
> left:-16px;
> position:relative;
> top:-16px;
> width:180px;
> }
> how to avoid this?
>
--
View this message in context: http://www.nabble.com/Overview-map-image-offset-tp19742660p19747918.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list