Problem/Motivation

I require a map with detailed vector data, accuracy below 1 m would be nice. Currently OSM ends at zoom level 18 and Geolocation Field at 20.
From what I read in the Leaflet docs this can be achieved by just adding a GeoJSON layer to the map without any tiles as the max zoom limit seems to come from the tiles layer.
So I was wondering if you see any way that Geolocation Field could support a pure vector map without any tiles base layer in order to allow higher zoom levels than 20.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

janc48 created an issue. See original summary.

christianadamski’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have a link to the documentation?

janc48’s picture

Well, I looked up the maxZoom options in Map and TileLayer in the Leaflet docs and tested the behavior in a demo. You don't even need to remove the tiles layer, just allowing greater values than 20 in Map.maxZoom does the job.

  • 5da19aab committed on 4.x
    #3627111 Leaflet Max Zoom
    
christianadamski’s picture

Status: Postponed (maintainer needs more info) » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.