NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi,

Hope all are doing well. Can someone please let me know following functionalities can be implemented using Openstreetmap ?

1- want to show only one state (suppose Maharastra in Inda), not complete map. 2- Show all districts of that state (Maharastra) with boundaries 3- Show regions (Blocks of district) on click on specific district

If doable then please share any sample, API or help manual for implementation.

asked 04 Aug '21, 12:17

JaydevJangid's gravatar image

JaydevJangid
11112
accept rate: 0%


Hello,

For 1, it's tricky, but UMap allows to restrict the map view to some bounding box. To really display only the state, and blank tiles otherwise, you'll have to create your own rendering stack AFAIK.

This overpass query will display all the districts (admin_level=5) of Maharastra, this resolves 2.

And you can load the result of overpass queries in UMap, to combine 1 and 2. Either dynamically, but the load on the server is high and the data should not change often, or statically, you export the data from overpass turbo, and import it as a layer in UMap.

But for 3, I don't see the regions in the list of admin_levels for India, so I don't think they exists in OSM.

Hope this helps. Regards.

permanent link

answered 04 Aug '21, 16:06

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1

question asked: 04 Aug '21, 12:17

question was seen: 524 times

last updated: 04 Aug '21, 16:06

Related questions

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum