I’m new to OSM and want to create a leaflet map using OSM that shows only city names and does not show any label or landmark like hospital, hotel, etc. Kindly help me create this map.
Here’s the sample code:
// Create a Leaflet map centered at a specific location and zoom level
const map = L.map(“leaflet-map-popup”).setView([20.5937, 78.9629], 5);
// Customize the map's appearance with a custom tile layer (HOT style)
L.tileLayer("https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png", {
maxZoom: 16,
tileSize: 512,
zoomOffset: -1,
}).addTo(map);
Thanks in advance
3 posts - 3 participants
Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/how-to-create-a-map-that-shows-only-city-names-and-does-not-show-any-label-or-landmarks-like-hotel-hospital-etc-using-osm-and-leaflet/103639