Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
adecampillo CreditAttribution: adecampillo commentedComment #2
PolThis is also something I would like to fix, I will check this out asap.
Comment #3
adecampillo CreditAttribution: adecampillo commentedThanks Pol, I was going crazy with this. I thought I was doing something wrong.
Comment #4
PolHi,
Try to uncheck the 'wrapDateLine' setting in the layer and it should work.
Reopen the issue if it's not.
Comment #5
adecampillo CreditAttribution: adecampillo commentedHi 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.
Comment #7
NitebreedReopening this issue, because this problem still exists
Comment #8
NitebreedComment #9
adevane CreditAttribution: adevane commentedAny 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
Comment #10
jantoine CreditAttribution: jantoine commentedThe '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.
Comment #11
pieterdt CreditAttribution: pieterdt commentedI 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