stefanocudini / leaflet-locationpicker Goto Github PK
View Code? Open in Web Editor NEWSimple location picker on Leaflet map
Home Page: https://opengeo.tech/maps/leaflet-locationpicker/
License: MIT License
Simple location picker on Leaflet map
Home Page: https://opengeo.tech/maps/leaflet-locationpicker/
License: MIT License
Hello,
When you click the map zoom button, the map closes without you being able to select a position.
Tested on Chrome and IE 11
Run npm grunt and bower install
Installed js/jquery libs under js/
Installed leaflet under maps/leaflet
The following code is not working correctly and because I know nothing about leaflet I don't have a solution. I assume this is supposed to detect when the user clicks outside of leaflet and closes the map. It currently closes the map even when clicked on the map without reporting the location. I changed the line above it to:
var close = false;
and this bandaids the problem but doesn't fix it.
while (p) { if (p._leaflet) { close = false; break; } p = p.parentElement; }
Right now the location starts at continent level. Is there a way to have it start at a specific location?
So instead of starting in a zoomed out level, I can have it start at specific lat, long, then pick the location?
EDIT: I found it. Changedthe L.latLng inside leaflet-locationpicker.src.js
Hi,
I wonder where the map tiles are coming from? Isnt there any need for attribution?
Make new demo example using custom field location in json-editor
https://github.com/jdorn/json-editor/#custom-editor-interfaces
hi there. Might be the user is the problem here as I tried to use locationpicker without npm. From my limited understanding it should still work..
I tried it with your /dist
scripts from this repo and looked into /examples
.
This:
<head>
<link rel="stylesheet"
type="text/css"
href="/static/scripts/location_picker.css"
>
</head>
<label> Insert GEO
<input id="geoloc" type="text" value="" />
</label>
<script src="//unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="//code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="/static/scripts/location_picker.js"></script>
<script>
$('#geoloc').leafletLocationPicker();
</script>
when i zoom it is even more unusable.
As I am not fond of the javascript universe I don't quite know where to begin bugfixing this.
thank you very good . please add default zoom ..
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.