Live data from Hacker News

A new way to make maps with OpenStreetMap

protomaps.com

81–90 of 102 posts

Re: A new way to make maps with OpenStreetMap

#81

Question that maybe HN can answer: If I want to build a free open-source web application with a map view that can be annotated, works on mobile etc and uses Open Street Map data, what are the best options right now?

Great question, GeoDjango with leaflet seems popular.

Re: A new way to make maps with OpenStreetMap

#82

Question that maybe HN can answer: If I want to build a free open-source web application with a map view that can be annotated, works on mobile etc and uses Open Street Map data, what are the best options right now?

For annotation UIs on the web I would check out how http://geojson.io works, the implementation is on GitHub: http://github.com/mapbox/geojson.io

Re: A new way to make maps with OpenStreetMap

#83
post #15
post #12

This is very nice! Happy to see a few of my libraries in the dependencies :) Also check out https://github.com/kothic/kothic-js , an older but similar attempt at making a full-fledged map renderer using 2D Canvas. It has a pretty good label rendering in particular which you might find useful.

This looks great. I am super excited about the parent tool, but unsure whether/when I can generate these bundles programmatically. I tried the web based tool and it works great, but what if I need to do it many, many times? Can your tool do this easily? Is there a way to generate tiles (tiles.pmtiles) that are imported in the same way? If I had stumbled on your project, I would not have been enthusiastic about it wit…

I'd like to understand what you mean by doing it many times - do you mean for different areas of the world? I haven't thought about API access to the bundles in detail yet, but you can contact me via email at brandon@protomaps.com if you have some idea of what you need.

Re: A new way to make maps with OpenStreetMap

#84
Is the author around?

Curiously, the editor does not render (well, it renders a black screen) in Firefox 78.9.0. I see this error in devtools:

    Uncaught SyntaxError: expected expression, got '=' protomaps.min.js:1:52669
    On props update af913d4d.0fa8ea22.js:1:7975 ReferenceError: protomaps is not defined

(Chromium is fine)

Re: A new way to make maps with OpenStreetMap

#85

Is the author around? Curiously, the editor does not render (well, it renders a black screen) in Firefox 78.9.0. I see this error in devtools: Uncaught SyntaxError: expected expression, got '=' protomaps.min.js:1:52669 On props update af913d4d.0fa8ea22.js:1:7975 ReferenceError: protomaps is not defined (Chromium is fine)

Yes, I'll look into this. Can you email me at brandon@protomaps.com or make an issue at http://github.com/protomaps/protomaps.js ? I may need to make a get a sourcemap-enabled build online as well.

Re: A new way to make maps with OpenStreetMap

#86
post #85

Is the author around? Curiously, the editor does not render (well, it renders a black screen) in Firefox 78.9.0. I see this error in devtools: Uncaught SyntaxError: expected expression, got '=' protomaps.min.js:1:52669 On props update af913d4d.0fa8ea22.js:1:7975 ReferenceError: protomaps is not defined (Chromium is fine)

Yes, I'll look into this. Can you email me at brandon@protomaps.com or make an issue at http://github.com/protomaps/protomaps.js ? I may need to make a get a sourcemap-enabled build online as well.

I think I've fixed this now, and it exposed some other problems in my code and build process... can you verify everything works? Thanks for reporting!

Re: A new way to make maps with OpenStreetMap

#89

Earlier quoted context omitted.

I’ve used the utility tippecanoe with success to generate vector tiles from geojson sources and am hosting them statically. It’s been overall pretty easy. The only gotcha I can remember is I needed to pass the no compression flag since mapbox gl can’t read compressed tiles (and the file host will gzip everything anyways).

What issues have you run into with gzipped tiles? I store a lot of gzipped individual tiles for use in Mapbox GL maps on S3 with no problem - the only necessary change was making sure that S3 was emitting `content-encoding` headers.

I couldn’t get the tiles to show up at all when they were compressed by tippecanoe. I’m not sure what the problems is, to be honest.
Post reply on HN