smmaurer / geojson-web-viewer Goto Github PK
View Code? Open in Web Editor NEWTiny webpage template for displaying GeoJSON paths in a mobile browser
Home Page: https://smmaurer.github.io/geojson-web-viewer
License: MIT License
Tiny webpage template for displaying GeoJSON paths in a mobile browser
Home Page: https://smmaurer.github.io/geojson-web-viewer
License: MIT License
New features coming: mapbox/mapbox-gl-js#4479
Zoom to bounds when file is initially loaded.
I forget how this work.
Ideally, tapping the geolocate button should display a dot at your current location, pan the map so that it's centered there, but not change the zoom.
Could tack it onto the URL to generate a persistent link.
It's oddly difficult to get a bounding box for the geojson source.
One option is to use jQuery to load the geojson file directly, and then use Turf.js to calculate a bounding box. This seems like a lot of overhead, so for now I'm just going to accept the bounding box as a query parameter.
http://turfjs.org/docs/#bbox
https://gis.stackexchange.com/questions/214668/reading-through-geojson-using-turf-js/214775
https://stackoverflow.com/questions/35586360/mapbox-gl-js-getbounds-fitbounds
https://bl.ocks.org/danswick/83a8ddff7fb9193176a975a02a896792
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.