Comments (8)
hi @seadour thank yooou for the alert
I checked and actually does not work..
Now I do not have free time to understand what happened.. :(
from leaflet-search.
If I can figure it out, I'll definitely make a pull request for you.
from leaflet-search.
thank you @seadour!
from leaflet-search.
I have it working for geojson, but it ONLY works by starting from the first character. For example, if the wanted item is 8735 (which you can try on the map), if you type in 735 it will not show up. However, the searching from csv works this way, meaning it searches the entire field. I'm not sure why it's not working on the author's site with geojson. Although it is very rough, you can see a working geojson search here, not sure if I have the latest plugin version. Again try 8735, these are addresses. I changed the circle color to white, otherwise no changes were made.
On another note I would like to know how to open the popup for the marker once it's found.
from leaflet-search.
@reyemtm when you say "searching from csv" -- do you mean json, using the 'callData' option?
It looks like you are actually using a fork of Leaflet called CartoDB.js. (https://github.com/CartoDB/cartodb.js) Unfortunately I don't know enough about that project to help debug it with leaflet-search.
There are a lot of other libraries in your example that could be causing other discrepancies, too. It would be helpful if you could try to reproduce your map through a stripped-down version with just leaflet/cartodb and leaflet-search.
from leaflet-search.
Here ya go. I've added the csv search as well, not too sure how to separate them. I added the csv using the omnivore plugin. I stripped out all the other plugins. The csv is the second search button, the layer are airports in the US so you have to zoom out to see them, but you can search on the entire field as I said above.
from leaflet-search.
<3! Thank you so much @stefanocudini!!
from leaflet-search.
It's only more simple bugfix... please starring and watch the repo.... and share!
bye!
from leaflet-search.
Related Issues (20)
- How do I use my own local nominatim server? HOT 2
- Package seems to be interfering with other leaflet packages HOT 1
- Are there TypeScript typings for this project? HOT 6
- use react js. HOT 1
- I want to custom search box,How to deal with it? HOT 1
- Refactoring - Reformatting HOT 1
- Leaflet search + multiple geojson layers HOT 1
- How to disable further client-side filtering of ajax results? HOT 1
- error on marker false and hideMarkerOnCollapse true
- multiple equal search results HOT 1
- Dynamic alert on Location not found when result is not available.
- HTML in search result HOT 1
- Use Case WordPress HOT 1
- Bad url call composition HOT 1
- html characters in search results
- Wrong `location` in JS files in Demo page HOT 1
- JSONP broken HOT 2
- Error in css HOT 1
- Geocoding examples broken HOT 4
- Console returning Uncaught TypeError e.split is not a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaflet-search.