GithubHelp home page GithubHelp logo

jquery.leaflet-addresspicker's Introduction

jQuery Leaflet Addresspicker

Presentation

Le projet jQuery Leaflet addresspicker est inspiré de jQuery addresspicker qui fait globalement la même chose, mais pour google maps.

Je travaillais sur un projet leaflet et voulais avoir quelque chose comme jQuery addresspicker, donc j'ai eu l'idée de faire leaflet addresspicker.

Si vous voulez contribuer, faites un fork du projet et envoyez une pull request :).

English

The project jQuery Leaflet addresspicker was inspired by jQuery addresspicker which is nearly the same plugin for google maps.

I was working on leaflet and wanted to have something like jQuery addresspicker, so i did leaflet addresspicker.

If you want to contribute, please fork the project and do a pull request :).

Demonstration

jQuery Leaflet Addresspicker Demo & Full doc

Implementation

<input class="search" type="text" />
<input class="city" placeholder="The city name" disabled />
<div class="map"></div>
$(document).ready(function(){

    function do_something(){
        // do some stuff
    }

    function do_something_else(){
        // do some stuff
    }

    $(".search").leaflet_addresspicker({
        region_bias: "fr",
        map_options: {
            center: new L.LatLng(47, 3),
            scroll_wheel: true
        },
        elements: {
            map: ".map",
            locality: ".city"
        },
        callbacks: {
            after_load: do_something,
            after_update: do_something_else
        }
    });
});

jquery.leaflet-addresspicker's People

Contributors

aurox avatar

Watchers

 avatar

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.