1

Is it possible to increase map max zoom level? By default it is 18, but I need something around 25-30. Using newest React-Leaflet, MaxNativeZoom do nothing.

Example code:

<Map center={[55, 55]} zoom={18} maxNativeZoom={30}>
  <TileLayer
    attribution='&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
    url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
  />
  <FeatureGroup>
    <EditControl position="topright" onCreated={this.onCreated} />
  </FeatureGroup>
  {this.state.positions.map((position) => (
    <Marker position={[position.lat, position.lng]}></Marker>
  ))}
</Map>

1 Answer 1

2

add maxZoom to your map.

<Map center={[55, 55]} zoom={18} maxZoom={30}>

Not the answer you're looking for? Browse other questions tagged or ask your own question.