JavaScript libraries for OSM application
Latest commit c5689e9 Mar 20, 2013 @alno Fix typo in 'snow', fixes #5

JavaScript libraries for OpenStreetMap applications


Validators Leaflet layer

Add validators layer to your Leaflet map by:

map.addLayer(new OsmJs.Validators.LeafletLayer(config))

Where example config is:

  validators: [{
    "name": "Отладочный валидатор",
    "url": "{minlat}&minlon={minlon}&maxlat={maxlat}&maxlon={maxlon}",
    "offset_limit": true,
    "jsonp": true,
    "types": {
      "test_error": {"text": "Тестовая ошибка"}

OpenWeatherMap weather layer

Leaflet distance control

Icon for distance control from here:


Install coffee-script first:

sudo npm install --global coffee-script

Then call:

cake build

That's all, now you have your updated library in dist/


Copyright © 2012 Alexey Noskov, released under the {MIT license}[]