-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some params to hash #32
Comments
This could use lots more detail to explain what params are, why they should be added to the hash, and so on. Otherwise just looks like a duplicate of #10 |
http://maps.nadabs.org.ua/saky/#1 L.Hash.parseHashPlace = function(hash) {
if(hash.indexOf('#') === 0) {
hash = hash.substr(1);
}
var args = hash.split("/");
if (args.length == 1) {
var id_place = parseInt(args[0], 10);
if (isNaN(id_place)) {
return false;
} else {
return true;
}
} if (args.length == 2) {
return true;
} else {
return false;
}
}; |
Hi all, is there any update to this possible enhancement? I'm looking to do the same thing based on a geojson/json loaded within the map. For example, instead of: The URL could be configured to another dataset, such as a zip code, like so: It could still load the zoom, lat, and long on-load as long as those parameters weren't a requirement to get to the url, like so: Thank you in advance, and thank you to all the contributors, this is an awesome plug-in!! |
P.S. I forgot to mention it in my earlier post, but I'm willing to help tackle this if others agree this is a needed enhancement and can help lead me down the path to make 'er happen. 👍 |
Like this #zoom/lat/lng/param
The text was updated successfully, but these errors were encountered: