I'm new to OSM and want to create a leaflet map using OSM that shows only city names on the map and does not show any label or landmark like hotel, hospitals, 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
asked
09 Sep '23, 09:20
Aditya_07
11●1●1●2
accept rate:
0%
See also 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