twista / leaflet-google-places-autocomplete Goto Github PK
View Code? Open in Web Editor NEWLeaflet plugin for Google Places Autocomplete
License: MIT License
Leaflet plugin for Google Places Autocomplete
License: MIT License
the plugin works well when choosing a location with a click. however, when there's only one answer, a normal UX would be to press ENTER to choose it. This break the app.
Is there a way to force the zoom level when selecting a place?
Thx
While using the custom options:
new L.Control.GPlaceAutocomplete({ position: "topleft", callback: function(location){ map.panTo(location); } }).addTo(map);
I got an error:
Uncaught TypeError: Cannot read property 'lat' of null
However, it works great with no custom options:
new L.Control.GPlaceAutocomplete().addTo(map);
I want to use custom options for zoomTo(location)
, instead of panTo(location)
What could be the problem?
Thank you in advance
Hi, is there a way to add a tooltip title to the search button?
Hi, neat little plugin. Just thought I'd correct your example in the README which uses map.setView and map.setZoom
in succession. This leads to the wrong places being found as pointed out here:
Leaflet/Leaflet#426
It's recommended to use:
map.setView( [lat, lon], zoomlevel);
Hope that makes sense.
i got this, i have a leaflet map with many datas,
basically i want to search my datas based on location i search with this plugin.
please the solution, thank you
The files simple.html and leaflet-gplaces-autocomplete.js still use the var keyword and needs to be converted to ES6 "let" keyword.
What do you think about tuning the search control to be more compact so that it unfolds on click - similar to what leaflet-search
does (see http://labs.easyblog.it/maps/leaflet-search/examples/simple.html for example).
Maybe on could provide a collapsed
flag to switch between compact and expanded appearance.
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.