Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate basemap with richer/more specific tags/layers #240

Open
adamcohenhillel opened this issue May 1, 2024 · 4 comments
Open

Generate basemap with richer/more specific tags/layers #240

adamcohenhillel opened this issue May 1, 2024 · 4 comments

Comments

@adamcohenhillel
Copy link

I am looking for a way to generate a custom basemap with some specific tags that exists in OSM but doesn't exist in the Protomaps Basemap, for example -> tag:amenity=shelter (https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dshelter)

Any resource on how to do that?

I guess I need to change/add something in tiles/src/main/java/com/protomaps/basemap/layers, but not sure what and how. Any help would be awesome!

Thank you

@wipfli
Copy link
Collaborator

wipfli commented May 1, 2024

Hi @adamcohenhillel. A good start can be to search for amenity for example here: https://github.com/search?q=repo%3Aprotomaps%2Fbasemaps%20amenity&type=code

Now it depends if you would like to add points or polygons. For points, you probably want to add it to the POI layer, for polygons, maybe the Landuse layer could be good. Let me know if you have further questions...

@bdon
Copy link
Member

bdon commented May 2, 2024

@adamcohenhillel our long term goal is to make the basemap extensible for specific use cases, but there's no framework around that yet.

The easiest pathway is right now is to overlay OSM shelters as a GeoJSON or PMTiles dataset separately from the basemap, is there a reason you need it integrated directly into the basemap?

@adamcohenhillel
Copy link
Author

Hey @bdon , thanks for the reply! It doesn't have to be integrated directly into the basemap, I can add a separate overlay. My use-case is basically add/remove different annotations to/from the map, based on a user clicking a button.

Do you have by any chance an example for how to add a simple overlay from OSM on the basemap? (either as a GeoJSON or PMTiles dataset, whatever is easier).

I am using the MapLibre GL

@bdon
Copy link
Member

bdon commented May 16, 2024

for amenity=shelter you could grab GeoJSON from an Overpass API instance and then pass the GeoJSON into https://github.com/felt/tippecanoe to create PMTiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants