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?
A new way to make maps with OpenStreetMap
81–90 of 102 posts
Re: A new way to make maps with OpenStreetMap
#82Question 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?
Re: A new way to make maps with OpenStreetMap
#83This 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…
Re: A new way to make maps with OpenStreetMap
#84Curiously, 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
#85Is 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
#86Is 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
#87Re: A new way to make maps with OpenStreetMap
#88Congrats for getting to the front page, would be cool to read the story how you are building protomaps as an indie dev on indie hackers or somewhere.
Re: A new way to make maps with OpenStreetMap
#89Earlier 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.