Code Monkey home page Code Monkey logo

Comments (4)

wipfli avatar wipfli commented on June 7, 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...

from basemaps.

bdon avatar bdon commented on June 7, 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?

from basemaps.

adamcohenhillel avatar adamcohenhillel commented on June 7, 2024

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

from basemaps.

bdon avatar bdon commented on June 7, 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.

from basemaps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.