Coder Social home page Coder Social logo

mortezanasi / esri-leaflet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from esri/esri-leaflet

0.0 1.0 0.0 11.15 MB

A lightweight set of tools for working with ArcGIS services with Leaflet.

Home Page: http://esri.github.io/esri-leaflet

License: Apache License 2.0

JavaScript 75.65% HTML 0.31% Shell 0.20% Handlebars 19.95% CSS 3.89%

esri-leaflet's Introduction

Esri Leaflet

Build Status

Leaflet plugins for ArcGIS Services. Currently Esri Leaflet supports loading Esri basemaps and feature services, as well as tiled map, dynamic map and image services.

The goal of Esri Leaflet is not to replace the ArcGIS API for JavaScript, but rather to provide small components to allow developers to build mapping applications with Leaflet.

Demos

We've written loads of demos showing many of the features of Esri Leaflet.

Example

Here is a quick example to get you started. Just copy/paste into your own .html file and run.

App

<!DOCTYPE html>
<html>
  <head>
     <!-- Load Leaflet from CDN-->
    <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
    <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>

    <!-- Load Esri Leaflet from CDN -->
    <script src="http://cdn.jsdelivr.net/leaflet.esri/1.0.0/esri-leaflet.js"></script>

    <style>
      html, body,  #map {
        width : 100%;
        height : 100%;
      }
    </style>
  </head>
  <body>
    <div id="map"></div>
    <script>
      var map = L.map('map').setView([45.528, -122.680], 13);

      L.esri.basemapLayer("Gray").addTo(map);

      var parks = L.esri.featureLayer({
        url: "http://services.arcgis.com/rOo16HdIMeOBI4Mb/arcgis/rest/services/Portland_Parks/FeatureServer/0",
        style: function () {
          return { color: "#70ca49", weight: 2 };
        }
      }).addTo(map);

      var popupTemplate = "<h3>{NAME}</h3>{ACRES} Acres<br><small>Property ID: {PROPERTYID}<small>";

      parks.bindPopup(function(feature){
        return L.Util.template(popupTemplate, feature.properties)
      });
    </script>
  </body>
</html>

Documentation & Examples

A full API Reference and plenty of sample code can be found at the Esri Leaflet website.

Development Roadmap

If you are interested in contributing to Esri Leaflet or seeing what is coming up next check out the development roadmap.

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Please take a look at previously logged issues that resolve common problems.

You can also post issues on GIS Stackexchange an/or the Esri Leaflet place on GeoNet.

Frequently Asked Questions

Projects Using Esri Leaflet

Feel free to add your own project to this list!

Development Instructions

In order to compile the API yourself and/or run the tests, make sure you have the Grunt CLI installed.

  1. Fork and clone Esri Leaflet
  2. cd into the esri-leaflet folder
  3. Install the dependencies with npm install
  4. run grunt from the command line. This will start the web server locally at http://localhost:8001 and start watching the source files and running linting and testing commands.
  5. Make your changes and create a pull request if you'd like to contribute

Dependencies

  • Leaflet version 0.7.3 is required.

Versioning

For transparency into the release cycle and in striving to maintain backward compatibility, Esri Leaflet is maintained under the Semantic Versioning guidelines and will adhere to these rules whenever possible.

Releases will be numbered with the following format:

<major>.<minor>.<patch>

And constructed with the following guidelines:

  • Breaking backward compatibility bumps the major while resetting minor and patch
  • New additions without breaking backward compatibility bumps the minor while resetting the patch
  • Bug fixes and misc changes bumps only the patch

For more information on SemVer, please visit http://semver.org/.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

Credit

Licensing

Copyright 2015 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's LICENSE file.

[](Esri Tags: ArcGIS Web Mapping Leaflet) [](Esri Language: JavaScript)

esri-leaflet's People

Contributors

patrickarlt avatar jgravois avatar alaframboise avatar paulcpederson avatar robertd avatar tomwayson avatar odoe avatar oslek avatar ungoldman avatar nikolaswise avatar aaronpk avatar kevinsigwart avatar scw avatar geographist avatar mandarinconlabarba avatar qbit avatar bmcbride avatar whymarrh avatar alperdincer avatar cwalv avatar dmahoney-rdffg avatar davidpiesse avatar greigrm avatar mejackreed avatar johnwebbcole avatar mwengren avatar stdavis avatar tbranyen 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.