@nextgis/react-ngw-leaflet 1.13.8 → 1.15.1
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.
package/lib/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { FunctionComponentElement } from 'react';
|
|
2
2
|
import type { Map as Map_2 } from 'leaflet';
|
|
3
|
-
import MapAdapter from '@nextgis/leaflet-map-adapter';
|
|
4
3
|
import type { MapContainerProps } from '@nextgis/react-ngw-map';
|
|
4
|
+
import { ReactNgwMapProps } from '@nextgis/react-ngw-map';
|
|
5
5
|
|
|
6
|
-
declare function ReactNgwLeaflet<Props extends MapContainerProps = MapContainerProps<Map_2>>(props: Props): FunctionComponentElement<
|
|
7
|
-
mapAdapter: MapAdapter;
|
|
8
|
-
}>;
|
|
6
|
+
declare function ReactNgwLeaflet<Props extends MapContainerProps = MapContainerProps<Map_2>>(props: Props): FunctionComponentElement<ReactNgwMapProps>;
|
|
9
7
|
export default ReactNgwLeaflet;
|
|
10
8
|
|
|
11
9
|
export { }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/react-ngw-leaflet; version: 1.
|
|
1
|
+
/** Bundle of @nextgis/react-ngw-leaflet; version: 1.15.1; author: NextGIS */
|
|
2
2
|
import { createElement } from 'react';
|
|
3
3
|
import { Icon } from 'leaflet';
|
|
4
4
|
import MapAdapter from '@nextgis/leaflet-map-adapter';
|
|
@@ -8,7 +8,7 @@ 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
|
-
|
|
11
|
+
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
13
13
|
|
|
14
14
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -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;
|
|
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,16 +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";
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */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}).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 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};
|
|
16
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","mapAdapter","MapAdapter","createElement","ReactNgwMap","Icon","Default","prototype","_getIconUrl","mergeOptions","iconRetinaUrl","iconUrl","shadowUrl"],"mappings":"
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextgis/react-ngw-leaflet",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.1",
|
|
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.
|
|
10
|
-
"@nextgis/react-ngw-map": "^1.
|
|
9
|
+
"@nextgis/leaflet-map-adapter": "^1.15.1",
|
|
10
|
+
"@nextgis/react-ngw-map": "^1.15.1"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@nextgis/build-tools": "^1.
|
|
13
|
+
"@nextgis/build-tools": "^1.15.1"
|
|
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": "
|
|
47
|
+
"gitHead": "78e77a6f52e60941ddbde3af8ad559b174950d4d"
|
|
48
48
|
}
|