@nextgis/react-ngw-leaflet 1.16.8 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/react-ngw-leaflet; version: 1.16.8; author: NextGIS */
1
+ /** Bundle of @nextgis/react-ngw-leaflet; version: 1.17.0; author: NextGIS */
2
2
  import { createElement } from 'react';
3
3
  import { Icon } from 'leaflet';
4
4
  import MapAdapter from '@nextgis/leaflet-map-adapter';
@@ -8,41 +8,15 @@ import iconRetinaUrl from 'leaflet/dist/images/marker-icon-2x.png';
8
8
  import iconUrl from 'leaflet/dist/images/marker-icon.png';
9
9
  import shadowUrl from 'leaflet/dist/images/marker-shadow.png';
10
10
 
11
- /******************************************************************************
12
- Copyright (c) Microsoft Corporation.
13
-
14
- Permission to use, copy, modify, and/or distribute this software for any
15
- purpose with or without fee is hereby granted.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
18
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
20
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
- PERFORMANCE OF THIS SOFTWARE.
24
- ***************************************************************************** */
25
-
26
- var __assign = function() {
27
- __assign = Object.assign || function __assign(t) {
28
- for (var s, i = 1, n = arguments.length; i < n; i++) {
29
- s = arguments[i];
30
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
31
- }
32
- return t;
33
- };
34
- return __assign.apply(this, arguments);
35
- };
36
-
37
- delete Icon.Default.prototype._getIconUrl;
38
- Icon.Default.mergeOptions({
39
- iconRetinaUrl: iconRetinaUrl,
40
- iconUrl: iconUrl,
41
- shadowUrl: shadowUrl,
42
- });
43
- function ReactNgwLeaflet(props) {
44
- var p = __assign(__assign({}, props), { mapAdapter: new MapAdapter() });
45
- return createElement(ReactNgwMap, p);
11
+ delete Icon.Default.prototype._getIconUrl;
12
+ Icon.Default.mergeOptions({
13
+ iconRetinaUrl: iconRetinaUrl,
14
+ iconUrl: iconUrl,
15
+ shadowUrl: shadowUrl,
16
+ });
17
+ function ReactNgwLeaflet(props) {
18
+ const p = { ...props, mapAdapter: new MapAdapter() };
19
+ return createElement(ReactNgwMap, p);
46
20
  }
47
21
 
48
22
  export { ReactNgwLeaflet as default };
@@ -1 +1 @@
1
- {"version":3,"file":"react-ngw-leaflet.esm-bundler.js","sources":["../src/ReactNgwLeaflet.ts"],"sourcesContent":["import { createElement } from 'react';\nimport { Icon } from 'leaflet';\n\nimport MapAdapter from '@nextgis/leaflet-map-adapter';\nimport { ReactNgwMap } from '@nextgis/react-ngw-map';\n\nimport 'leaflet/dist/leaflet.css';\nimport iconRetinaUrl from 'leaflet/dist/images/marker-icon-2x.png';\nimport iconUrl from 'leaflet/dist/images/marker-icon.png';\nimport shadowUrl from 'leaflet/dist/images/marker-shadow.png';\n\nimport type { Map } from 'leaflet';\nimport type { MapContainerProps } from '@nextgis/react-ngw-map';\n\ndelete (Icon.Default as any).prototype._getIconUrl;\n\nIcon.Default.mergeOptions({\n iconRetinaUrl: iconRetinaUrl,\n iconUrl: iconUrl,\n shadowUrl: shadowUrl,\n});\n\nexport function ReactNgwLeaflet<\n Props extends MapContainerProps = MapContainerProps<Map>,\n>(props: Props) {\n const p = { ...props, mapAdapter: new MapAdapter() };\n return createElement(ReactNgwMap, p);\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,OAAQ,IAAI,CAAC,OAAe,CAAC,SAAS,CAAC,WAAW,CAAC;AAEnD,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;AACxB,IAAA,aAAa,EAAE,aAAa;AAC5B,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,SAAS,EAAE,SAAS;AACrB,CAAA,CAAC,CAAC;AAEG,SAAU,eAAe,CAE7B,KAAY,EAAA;IACZ,IAAM,CAAC,GAAQ,QAAA,CAAA,QAAA,CAAA,EAAA,EAAA,KAAK,CAAE,EAAA,EAAA,UAAU,EAAE,IAAI,UAAU,EAAE,EAAA,CAAE,CAAC;AACrD,IAAA,OAAO,aAAa,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AACvC;;;;"}
1
+ {"version":3,"file":"react-ngw-leaflet.esm-bundler.js","sources":["../src/ReactNgwLeaflet.ts"],"sourcesContent":["import { createElement } from 'react';\nimport { Icon } from 'leaflet';\n\nimport MapAdapter from '@nextgis/leaflet-map-adapter';\nimport { ReactNgwMap } from '@nextgis/react-ngw-map';\n\nimport 'leaflet/dist/leaflet.css';\nimport iconRetinaUrl from 'leaflet/dist/images/marker-icon-2x.png';\nimport iconUrl from 'leaflet/dist/images/marker-icon.png';\nimport shadowUrl from 'leaflet/dist/images/marker-shadow.png';\n\nimport type { Map } from 'leaflet';\nimport type { MapContainerProps } from '@nextgis/react-ngw-map';\n\ndelete (Icon.Default as any).prototype._getIconUrl;\n\nIcon.Default.mergeOptions({\n iconRetinaUrl: iconRetinaUrl,\n iconUrl: iconUrl,\n shadowUrl: shadowUrl,\n});\n\nexport function ReactNgwLeaflet<\n Props extends MapContainerProps = MapContainerProps<Map>,\n>(props: Props) {\n const p = { ...props, mapAdapter: new MapAdapter() };\n return createElement(ReactNgwMap, p);\n}\n"],"names":[],"mappings":";;;;;;;;;;AAcA,OAAQ,IAAI,CAAC,OAAe,CAAC,SAAS,CAAC,WAAW,CAAC;AAEnD,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;AACxB,IAAA,aAAa,EAAE,aAAa;AAC5B,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,SAAS,EAAE,SAAS;AACrB,CAAA,CAAC,CAAC;AAEG,SAAU,eAAe,CAE7B,KAAY,EAAA;AACZ,IAAA,MAAM,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,IAAI,UAAU,EAAE,EAAE,CAAC;AACrD,IAAA,OAAO,aAAa,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AACvC;;;;"}
@@ -1,2 +1,2 @@
1
- import{createElement as t}from"react";import{Icon as e}from"leaflet";import r from"@nextgis/leaflet-map-adapter";import{ReactNgwMap as a}from"@nextgis/react-ngw-map";import"leaflet/dist/leaflet.css";import o from"leaflet/dist/images/marker-icon-2x.png";import i from"leaflet/dist/images/marker-icon.png";import n from"leaflet/dist/images/marker-shadow.png";var l=function(){return l=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},l.apply(this,arguments)};function m(e){var o=l(l({},e),{mapAdapter:new r});return t(a,o)}delete e.Default.prototype._getIconUrl,e.Default.mergeOptions({iconRetinaUrl:o,iconUrl:i,shadowUrl:n});export{m as default};
1
+ import{createElement as e}from"react";import{Icon as t}from"leaflet";import r from"@nextgis/leaflet-map-adapter";import{ReactNgwMap as a}from"@nextgis/react-ngw-map";import"leaflet/dist/leaflet.css";import o from"leaflet/dist/images/marker-icon-2x.png";import m from"leaflet/dist/images/marker-icon.png";import i from"leaflet/dist/images/marker-shadow.png";function l(t){const o={...t,mapAdapter:new r};return e(a,o)}delete t.Default.prototype._getIconUrl,t.Default.mergeOptions({iconRetinaUrl:o,iconUrl:m,shadowUrl:i});export{l as default};
2
2
  //# sourceMappingURL=react-ngw-leaflet.esm-bundler.prod.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-ngw-leaflet.esm-bundler.prod.js","sources":["../src/ReactNgwLeaflet.ts"],"sourcesContent":["import { createElement } from 'react';\nimport { Icon } from 'leaflet';\n\nimport MapAdapter from '@nextgis/leaflet-map-adapter';\nimport { ReactNgwMap } from '@nextgis/react-ngw-map';\n\nimport 'leaflet/dist/leaflet.css';\nimport iconRetinaUrl from 'leaflet/dist/images/marker-icon-2x.png';\nimport iconUrl from 'leaflet/dist/images/marker-icon.png';\nimport shadowUrl from 'leaflet/dist/images/marker-shadow.png';\n\nimport type { Map } from 'leaflet';\nimport type { MapContainerProps } from '@nextgis/react-ngw-map';\n\ndelete (Icon.Default as any).prototype._getIconUrl;\n\nIcon.Default.mergeOptions({\n iconRetinaUrl: iconRetinaUrl,\n iconUrl: iconUrl,\n shadowUrl: shadowUrl,\n});\n\nexport function ReactNgwLeaflet<\n Props extends MapContainerProps = MapContainerProps<Map>,\n>(props: Props) {\n const p = { ...props, mapAdapter: new MapAdapter() };\n return createElement(ReactNgwMap, p);\n}\n"],"names":["ReactNgwLeaflet","props","p","__assign","mapAdapter","MapAdapter","createElement","ReactNgwMap","Icon","Default","prototype","_getIconUrl","mergeOptions","iconRetinaUrl","iconUrl","shadowUrl"],"mappings":"yjBAsBM,SAAUA,EAEdC,GACA,IAAMC,EAASC,EAAAA,EAAA,GAAAF,GAAO,CAAAG,WAAY,IAAIC,IACtC,OAAOC,EAAcC,EAAaL,EACpC,QAbQM,EAAKC,QAAgBC,UAAUC,YAEvCH,EAAKC,QAAQG,aAAa,CACxBC,cAAeA,EACfC,QAASA,EACTC,UAAWA"}
1
+ {"version":3,"file":"react-ngw-leaflet.esm-bundler.prod.js","sources":["../src/ReactNgwLeaflet.ts"],"sourcesContent":["import { createElement } from 'react';\nimport { Icon } from 'leaflet';\n\nimport MapAdapter from '@nextgis/leaflet-map-adapter';\nimport { ReactNgwMap } from '@nextgis/react-ngw-map';\n\nimport 'leaflet/dist/leaflet.css';\nimport iconRetinaUrl from 'leaflet/dist/images/marker-icon-2x.png';\nimport iconUrl from 'leaflet/dist/images/marker-icon.png';\nimport shadowUrl from 'leaflet/dist/images/marker-shadow.png';\n\nimport type { Map } from 'leaflet';\nimport type { MapContainerProps } from '@nextgis/react-ngw-map';\n\ndelete (Icon.Default as any).prototype._getIconUrl;\n\nIcon.Default.mergeOptions({\n iconRetinaUrl: iconRetinaUrl,\n iconUrl: iconUrl,\n shadowUrl: shadowUrl,\n});\n\nexport function ReactNgwLeaflet<\n Props extends MapContainerProps = MapContainerProps<Map>,\n>(props: Props) {\n const p = { ...props, mapAdapter: new MapAdapter() };\n return createElement(ReactNgwMap, p);\n}\n"],"names":["ReactNgwLeaflet","props","p","mapAdapter","MapAdapter","createElement","ReactNgwMap","Icon","Default","prototype","_getIconUrl","mergeOptions","iconRetinaUrl","iconUrl","shadowUrl"],"mappings":"qWAsBM,SAAUA,EAEdC,GACA,MAAMC,EAAI,IAAKD,EAAOE,WAAY,IAAIC,GACtC,OAAOC,EAAcC,EAAaJ,EACpC,QAbQK,EAAKC,QAAgBC,UAAUC,YAEvCH,EAAKC,QAAQG,aAAa,CACxBC,cAAeA,EACfC,QAASA,EACTC,UAAWA"}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@nextgis/react-ngw-leaflet",
3
- "version": "1.16.8",
3
+ "version": "1.17.0",
4
4
  "description": "React NGW map component for leaflet",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/react-ngw-leaflet.esm-bundler.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nextgis/leaflet-map-adapter": "^1.16.8",
10
- "@nextgis/react-ngw-map": "^1.16.8"
9
+ "@nextgis/leaflet-map-adapter": "^1.17.0",
10
+ "@nextgis/react-ngw-map": "^1.17.0"
11
11
  },
12
12
  "devDependencies": {
13
- "@nextgis/build-tools": "^1.16.8"
13
+ "@nextgis/build-tools": "^1.17.0"
14
14
  },
15
15
  "buildOptions": {
16
16
  "name": "ReactNgwLeaflet",
@@ -44,5 +44,5 @@
44
44
  "bugs": {
45
45
  "url": "https://github.com/nextgis/nextgis_frontend/issues"
46
46
  },
47
- "gitHead": "e156aa6d884f1987e3f84649284d5f0c70d713a5"
47
+ "gitHead": "c3162aae53c381cd6a581a2a67173fb1bf6de87e"
48
48
  }