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.
When user view the node, the map display is not zoom-in'ed, so users have to zoom-in the map to get a more clear view.
See Screenshot below:
Is there any way to set a default zoom-in level for map display in node?
Make user to see the map in a more close look by default which is good for accessibility. something like this below:
Thanks!
Comment | File | Size | Author |
---|---|---|---|
Untitled.png | 482.46 KB | gilzero | |
109579.png | 256.3 KB | gilzero |
Comments
Comment #1
tuccio CreditAttribution: tuccio commentedI was about to post the same support request when I found this one.
Basically I created a content type with a Geofield and when I set the default location I can set the geographical point but not the default zoom level. So when a user creates a node of that type, the map widget is not zoomed to a usable level. How to set the default zoom level? Or, how to replace the default map with a custom map? Shouldn't the default location map store the zoom level as well as the default point?
Comment #2
tuccio CreditAttribution: tuccio commentedOK got it.
1. From admin/structure/openlayers/maps add or clone a map.
2. Then set the center point and zoom level in your new custom map.
3. Then in Behaviors, add the Geofield behavior.
4. At this point in your Geofield content type field, you will be able to select your custom map instead of the default (under the OpenLayers Map drop down menu)
PS you also need to add the Geofield Placeholder layer in order to have your custom map available for display as well.
Comment #3
naught101 CreditAttribution: naught101 commentedActually, I think the behaviour you're looking for is the "Zoom to layer" behaviour. You can select the layer(s) to zoom to. This also has an option to specify the zoom level for points.
Thanks for pointing me in the right direction!
Comment #5
juantxo_kupul CreditAttribution: juantxo_kupul commentedThis is exactly what i was looking for. Thank you !!
Comment #5.0
juantxo_kupul CreditAttribution: juantxo_kupul commentedtypo