Leaflet plugin for visualizing spatial prefix trees, quadtree and geohash
http://missinglink.github.io/leaflet-spatial-prefix-tree/
You can toggle the algorithm with the button located at the top-right.
Leaflet plugin for visualizing spatial prefix trees, quadtree and geohash
Home Page: http://missinglink.github.io/leaflet-spatial-prefix-tree/
Leaflet plugin for visualizing spatial prefix trees, quadtree and geohash
http://missinglink.github.io/leaflet-spatial-prefix-tree/
You can toggle the algorithm with the button located at the top-right.
Tested and was fine, with:
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
The leafletJs need some study, not so easy to upgrade.
It's not actually a 'plugin', more of a demo.. if someone wants to pluginify it, I'd be happy to merge the PR.
I included the javascript below in the index.html
and is working fine (!). Try to navigate with index.html#6gycfqf0
or index.html#geohash:6gycfqf0
with this javascript:
<script>
var hash = window.location.hash
hash = hash.replace('#','');
if (hash) {
// check prefixes "geohash:" (default) or "quadtree:" or "slippy:"
var prefix = ['geohash','quadtree','slippy'];
var selected = 'geohash';
var pos = hash.indexOf(':');
if (pos != -1) {
selected = hash.substr(0, pos)
if (prefix.indexOf(selected) == -1)
alert("HASH ERROR: no known "+selected);
hash = hash.substr(pos+1)
}
alert("OK, we can see the map at \n"+hash);
}
</script>
To continue: how to change by javascript the map location?
PS: if we can translate a Geohash code and the position of the map by Javascript, we can display map by the URL-supplied Geohash.
See also #4
Hi, there are a way to use something like http://mapzen.github.io/leaflet-spatial-prefix-tree/{myGeohash}
?
actually write a description
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.