Giter Site home page Giter Site logo

Comments (8)

stefanocudini avatar stefanocudini commented on May 22, 2024

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.

MattSidor avatar MattSidor commented on May 22, 2024

If I can figure it out, I'll definitely make a pull request for you.

from leaflet-search.

stefanocudini avatar stefanocudini commented on May 22, 2024

thank you @seadour!

from leaflet-search.

reyemtm avatar reyemtm commented on May 22, 2024

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.

MattSidor avatar MattSidor commented on May 22, 2024

@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.

reyemtm avatar reyemtm commented on May 22, 2024

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.

MattSidor avatar MattSidor commented on May 22, 2024

<3! Thank you so much @stefanocudini!!

from leaflet-search.

stefanocudini avatar stefanocudini commented on May 22, 2024

It's only more simple bugfix... please starring and watch the repo.... and share!
bye!

from leaflet-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.