[OpenLayers-Users] Issues with display of overview map in
Chrome.
Nicholas Efremov-Kendall
n.e.kendall at gmail.com
Fri Aug 21 05:02:00 EDT 2009
Hi Bill,
Can you elaborate on this a little?
Here's my code for reference.
map = new OpenLayers.Map ("map",
{
controls:[
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.LayerSwitcher(),
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.OverviewMap(),
new OpenLayers.Control.Permalink()],
sphericalMercator: true,
maxExtent: new
OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
maxResolution: 156543.0399,
numZoomLevels: 19,
units: 'm',
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326")
}
);
On Thu, Aug 20, 2009 at 4:40 PM, Bill Thoen <bthoen at gisnet.com> wrote:
> Nicholas Efremov-Kendall wrote:
>
>> More rookie problems. I've added an overview map control and it displays,
>> but it appears that only the top left corner of the overview map div appears
>> in the bottom right corner. This issue only happens in chrome
>>
>
> I ran into this recently and fixed it by using cloned layers on the
> overview. It seemed that if I used a layer on the overview that I was also
> using in the map window, I would see only the NW quarter of the map in the
> overview window. But when I used this sort of construct: ov_layer1 =
> map_layer1.clone() to create layers for the overview, it worked perfectly.
>
> - Bill Thoen
>
>
--
Nicholas Efremov-Kendall
Fulbright Student 2009-2010, Ukraine
nefremov at artsci.wustl.edu
c/o Halyna Yerko
Balzaka 92a, Kv 27
02232
Kyiv, Ukraine
(mob) +380963576524
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090821/3c8144ce/attachment.html
More information about the Users
mailing list