esri-leaflet
Advanced tools
Comparing version 3.0.10 to 3.0.11
@@ -1,1 +0,1 @@ | ||
{"name": "esri-leaflet","version": "3.0.10","lib": {"path": "dist/esri-leaflet.js","integrity": "sha512-i9mZ/0lnBMdKZjkVQXImtZbWzrhomyyQzXarfT4ki1eD/Bi+rcV4lFyzX52lbRQtqj070JQea4p8QNCMrHzuYg=="}} | ||
{"name": "esri-leaflet","version": "3.0.11","lib": {"path": "dist/esri-leaflet.js","integrity": "sha512-qSE34Lz9JHdaPt3AZsi6L3dcqYHO9nnQEIxfrkgrRqqe+R0DPuAMu+j2vlb92zPka9O+XHZV4+9G5/rHT5ADsQ=="}} |
{ | ||
"name": "esri-leaflet", | ||
"description": "Leaflet plugins for consuming ArcGIS Online and ArcGIS Server services.", | ||
"version": "3.0.10", | ||
"version": "3.0.11", | ||
"author": "Patrick Arlt <parlt@esri.com> (http://patrickarlt.com)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
# Esri Leaflet | ||
[![npm version][npm-img]][npm-url] | ||
[![build status][travis-img]][travis-url] | ||
[![apache licensed](https://img.shields.io/badge/license-Apache%202.0-orange.svg?style=flat-square)](https://raw.githubusercontent.com/Esri/esri-leaflet/master/LICENSE) | ||
@@ -10,4 +9,2 @@ [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/esri-leaflet/badge)](https://www.jsdelivr.com/package/npm/esri-leaflet) | ||
[npm-url]: https://www.npmjs.com/package/esri-leaflet | ||
[travis-img]: https://img.shields.io/travis/Esri/esri-leaflet/master.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/Esri/esri-leaflet | ||
@@ -14,0 +11,0 @@ [Leaflet](http://leafletjs.com/) plugins for working with a handful of the most popular [ArcGIS Service](http://developers.arcgis.com) types. This includes Esri [basemaps](https://developers.arcgis.com/esri-leaflet/samples/showing-a-basemap/) and [feature services](https://developers.arcgis.com/esri-leaflet/samples/simple-feature-layer/), as well as [tiled](https://developers.arcgis.com/esri-leaflet/samples/tile-layer-1/) map, [dynamic](https://developers.arcgis.com/esri-leaflet/samples/simple-dynamic-map-layer/) map and [image](https://developers.arcgis.com/esri-leaflet/samples/simple-image-map-layer/) services. |
@@ -11,3 +11,2 @@ import { latLng, latLngBounds, LatLng, LatLngBounds, Util, DomUtil, GeoJSON } from 'leaflet'; | ||
var BASE_LEAFLET_ATTRIBUTION_STRING = '<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'; | ||
var POWERED_BY_ESRI_ATTRIBUTION_STRING = 'Powered by <a href="https://www.esri.com">Esri</a>'; | ||
@@ -221,3 +220,2 @@ | ||
map.attributionControl.setPrefix(BASE_LEAFLET_ATTRIBUTION_STRING + ' | ' + POWERED_BY_ESRI_ATTRIBUTION_STRING); | ||
DomUtil.addClass(map.attributionControl._container, 'esri-truncated-attribution:hover'); | ||
@@ -238,3 +236,2 @@ DomUtil.addClass(map.attributionControl._container, 'esri-truncated-attribution'); | ||
if (map.attributionControl._esriAttributionLayerCount && map.attributionControl._esriAttributionLayerCount === 1) { | ||
map.attributionControl.setPrefix(BASE_LEAFLET_ATTRIBUTION_STRING); | ||
DomUtil.removeClass(map.attributionControl._container, 'esri-truncated-attribution:hover'); | ||
@@ -362,3 +359,3 @@ DomUtil.removeClass(map.attributionControl._container, 'esri-truncated-attribution'); | ||
newAttributions = newAttributions.substr(2); | ||
newAttributions = POWERED_BY_ESRI_ATTRIBUTION_STRING + ' | ' + newAttributions.substr(2); | ||
attributionElement.innerHTML = newAttributions; | ||
@@ -365,0 +362,0 @@ attributionElement.style.maxWidth = calcAttributionWidth(map); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
948437
8281
161