Hi,
I was triying to set up "Initial map view" and whatever I set in Zoom level field I never can see the whole world map. It seems that zoom level is always 2. I can´t even get a zoom level less than 2 with zoom control of the map. Is there a way to change this? I need to display my marks in a whole world map but I don't know if I'm doing something wrong or this is impossible to change.

Comments

adecampillo’s picture

Component: OL API » OL Behaviors
Pol’s picture

This is also something I would like to fix, I will check this out asap.

adecampillo’s picture

Thanks Pol, I was going crazy with this. I thought I was doing something wrong.

Pol’s picture

Status: Active » Fixed

Hi,

Try to uncheck the 'wrapDateLine' setting in the layer and it should work.

Reopen the issue if it's not.

adecampillo’s picture

Hi Pol,
Thank you for your answer but I can't find 'wrapDateLine' in the layer. Where is it? Is it in openlayers->layers, in maps, in views? Sorry, I'm really lost.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Nitebreed’s picture

Reopening this issue, because this problem still exists

Nitebreed’s picture

Category: Support request » Bug report
Issue summary: View changes
Status: Closed (fixed) » Active
adevane’s picture

Any updates to this issue? Or has anyone found a solution? I had the map displaying fine at first without the level 2 zoom and now it won't ever fully zoom out (both in the default view and I can't get it to zoom out using the zoom bar manually), I've checked what I think are all of the possible settings and can't find anything wrong. Have cleared cache, run cron, etc.
Have tried different heights just in case that jogged the map at all, but no dice.
Display settings are width: auto and height: 400px
Running on Drupal 7.25 (about to upgrade to 7.26 in a few minutes because of the security update!) and OpenLayers 7.x-2.0-beta7

jantoine’s picture

The 'Wrap Data Line' setting belongs to the XYZ layer type, in this case the base map layer. Unchecking this setting seems like a workaround and not a fix. This seems to be an issue related to the 'Zoom Level Range' setting. By default, the 'Zoom Level Range' setting is set to '0-18' and leaves out '19-21' for the default map layer (MapQuest OSM). If I change this to only '0', I can see this zoom level fine. This works fine for any single value. When I select a range that includes '0' and/or '1', '0' and/or '1' are not available in the rendered map.

pieterdt’s picture

I have the same problem.

With 2.0-beta 1 this was not a problem, with beta 11 it appeared (didn't check intermediate versions).

for anyone looking where to unset the dateline wrap: in the list of layers & styles, you can click on the base layer to edit it. For me, this is an osm layer, which is of type xyz. There you can uncheck the dateline wrap.

However, this has as a side effect that the map seems 'smaller'. I had a map of 400px wide. This looks fine on zoomlevel 2 and up, but on zoomlevel 1, (due to the disabling of the dateline wrap I assume) the map is not filling the 400px. If you start zooming in, it takes up the desired 400px