@nextgis/react-ngw-leaflet 1.16.9 → 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.
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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":"
|
|
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
|
|
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","
|
|
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.
|
|
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.
|
|
10
|
-
"@nextgis/react-ngw-map": "^1.
|
|
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.
|
|
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": "
|
|
47
|
+
"gitHead": "c3162aae53c381cd6a581a2a67173fb1bf6de87e"
|
|
48
48
|
}
|