All Projects → Esri → Esri Leaflet

Esri / Esri Leaflet

Licence: apache-2.0
A lightweight set of tools for working with ArcGIS services in Leaflet. 🚀

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Esri Leaflet

Esri Leaflet Geocoder
helpers for using the ArcGIS World Geocoding Service in Leaflet
Stars: ✭ 164 (-87.91%)
Mutual labels:  web-development, arcgis, leaflet-plugins
Angular Esri Map
A collection of directives to help you use Esri maps and services in your Angular applications
Stars: ✭ 213 (-84.29%)
Mutual labels:  web-development, arcgis
Cedar
JavaScript Charts for ArcGIS
Stars: ✭ 230 (-83.04%)
Mutual labels:  web-development, arcgis
esri-leaflet-vector
Display ArcGIS Online vector basemaps w/ Esri Leaflet
Stars: ✭ 39 (-97.12%)
Mutual labels:  web-development, leaflet-plugins
Arcgis Rest Js
compact, modular JavaScript wrappers for the ArcGIS REST API
Stars: ✭ 231 (-82.96%)
Mutual labels:  web-development, arcgis
Imagery-Apps
Example JavaScript source code for ArcGIS imagery apps (Landsat Explorer and Sentinel Explorer) that you can expand or customize.
Stars: ✭ 24 (-98.23%)
Mutual labels:  web-development, arcgis
geoservices-js
Deprecated - please consider using @esri/arcgis-rest-js
Stars: ✭ 53 (-96.09%)
Mutual labels:  web-development, arcgis
The forge
Our groundbreaking, lightning fast PWA CLI tool
Stars: ✭ 70 (-94.84%)
Mutual labels:  web-development
Vue Music Website
Music website built with Vue.js and Cosmic JS
Stars: ✭ 80 (-94.1%)
Mutual labels:  web-development
Best Of Web Python
🏆 A ranked list of awesome python libraries for web development. Updated weekly.
Stars: ✭ 1,118 (-17.55%)
Mutual labels:  web-development
Fine Uploader
Multiple file upload plugin with image previews, drag and drop, progress bars. S3 and Azure support, image scaling, form support, chunking, resume, pause, and tons of other features.
Stars: ✭ 8,158 (+501.62%)
Mutual labels:  web-development
Maps App Javascript
Your organizations maps app built with ArcGIS API for Javascript
Stars: ✭ 71 (-94.76%)
Mutual labels:  arcgis
Awesome Arcgis
📄 Awesome resource list for ArcGIS Developers -> could you help us with a Star? ⭐
Stars: ✭ 83 (-93.88%)
Mutual labels:  arcgis
Featureserver
An open source Geoservices Implementation
Stars: ✭ 66 (-95.13%)
Mutual labels:  arcgis
R Bridge
Bridge library to connect ArcGIS and R, including arcgisbinding R library.
Stars: ✭ 87 (-93.58%)
Mutual labels:  arcgis
Jennifer dewalt
a.k.a. 180 Websites in 180 Days
Stars: ✭ 1,108 (-18.29%)
Mutual labels:  web-development
Leaflet.browser.print
A leaflet plugin which allows users to print the map directly from the browser
Stars: ✭ 94 (-93.07%)
Mutual labels:  leaflet-plugins
Urlpages
Create and view web pages stored entirely in the URL
Stars: ✭ 1,263 (-6.86%)
Mutual labels:  web-development
Arcgis Appstudio Samples
Collection of samples available in AppStudio for ArcGIS desktop to learn and help build your next app.
Stars: ✭ 78 (-94.25%)
Mutual labels:  arcgis
Toruk
Go web 开发脚手架
Stars: ✭ 78 (-94.25%)
Mutual labels:  web-development

Esri Leaflet

npm version build status apache licensed jsDelivr Hits

Leaflet plugins for working with a handful of the most popular ArcGIS Service types. This includes Esri basemaps and feature services, as well as tiled map, dynamic map and image services.

This project is maintained with ❤️ by folks on multiple teams at Esri, but we provide no guarantee of individual features, nor a traditional product lifecycle to support planning.

The goal of this project is not to replace the ArcGIS API for JavaScript but rather to provide small components for only some aspects of the ArcGIS platform for developers who prefer to build mapping applications with Leaflet.

We are proud to facilitate a project which requires participation from our diverse user community in order to thrive and we welcome contributions from those just getting their feet wet in open-source.

Support for Geocoding services and Geoprocessing services, as well as service defined rendering are available as well (via additional plugins).

If you'd like to display Esri services in any Leaflet application, we ask that you adhere to our Terms of Use and attribution requirements.

Table of Contents

Demos

We've shared lots of sample code showing off many of the features of Esri Leaflet.

http://esri.github.io/esri-leaflet/examples/

Example

The easiest way to get started is to load Esri Leaflet via CDN. Here is an example you can copy/paste into your own .html file.

App

<!DOCTYPE html>
<html>
  <head>
    <!-- Load Leaflet from CDN -->
    <link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css"/>
    <script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>

    <!-- Load Esri Leaflet from CDN -->
    <script src="https://unpkg.com/esri-leaflet/dist/esri-leaflet.js"></script>

    <style>
      html, body, #map {
        margin:0; padding:0;  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: "https://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(e){
        return L.Util.template(popupTemplate, e.feature.properties)
      });
    </script>
  </body>
</html>

API Reference

The source code for our documentation site can be found here. If you notice a typo or other problem, please let us know!

Additional Plugins

Many folks have written plugins to customize and extend Leaflet.

http://leafletjs.com/plugins.html

You can also pick and choose additional Esri Leaflet plugins.

http://esri.github.io/esri-leaflet/plugins/

Frequently Asked Questions

Issues

If something isn't working the way you expected, please take a look at previously logged issues that resolve common problems first. Have you found a new bug? Want to request a new feature? We'd love to hear from you. Please let us know by submitting an issue.

If you're looking for help you can also find answers on Stack Overflow and GeoNet.

Going Deeper

Development Instructions

If you'd like to inspect and modify the source of Esri Leaflet, follow the instructions below to set up a local development environment.

  1. Fork and clone Esri Leaflet
  2. cd into the esri-leaflet folder
  3. Install the package.json dependencies by running npm install
  4. Run npm start from the command line. This will compile minified source in a brand new dist directory, launch a tiny webserver and begin watching the raw source for changes.
  5. Run npm test to make sure you haven't introduced a new 'feature' accidentally.
  6. Make your changes and create a pull request

Dependencies

  • Esri Leaflet 1.x (available on CDN) can be used in apps alongside:

  • Esri Leaflet 2.x (available on CDN) can be used in apps alongside:

The master branch of this repository is only compatible with Leaflet 1.x.

Versioning

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

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

Contributing

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

Terms

For most public apps, a free Developer Plan is sufficient. If you're going to generate revenue, you'll need to purchase either a paid Developer Plan or one of the products below:

If you display an ArcGIS Online service in any Leaflet application, we require that you include Esri attribution and recognize data providers. Using this plugin, it couldn't be easier to follow the terms. Just select your basemap and the appropriate credits will be displayed dynamically in Leaflet's own Attribution control as users pan/zoom.

L.esri.basemapLayer('Topographic').addTo(map);

attribution

If you need more than 1 million map transactions per month, please let us know.

Credit

License

Copyright © 2014-2019 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].