@nextgis/ngw-leaflet 1.11.0 → 1.11.8
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/ngw-leaflet.esm-browser.js +12 -8
- package/lib/ngw-leaflet.esm-browser.js.map +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js.map +1 -1
- package/lib/ngw-leaflet.esm-bundler.js +1 -1
- package/lib/ngw-leaflet.global.js +12 -8
- package/lib/ngw-leaflet.global.js.map +1 -1
- package/lib/ngw-leaflet.global.prod.js +2 -2
- package/lib/ngw-leaflet.global.prod.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 1.11.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 1.11.8; author: NextGIS */
|
|
2
2
|
function styleInject(css, ref) {
|
|
3
3
|
if ( ref === void 0 ) ref = {};
|
|
4
4
|
var insertAt = ref.insertAt;
|
|
@@ -15555,9 +15555,6 @@ const paintTypeAlias = {
|
|
|
15555
15555
|
line: 'path',
|
|
15556
15556
|
point: 'circle',
|
|
15557
15557
|
};
|
|
15558
|
-
/**
|
|
15559
|
-
* @internal
|
|
15560
|
-
*/
|
|
15561
15558
|
const typeAlias$1 = {
|
|
15562
15559
|
Point: 'point',
|
|
15563
15560
|
LineString: 'line',
|
|
@@ -18622,6 +18619,13 @@ function fetchNgwLayerItemExtent({ resourceId, featureId, connector, cache = tru
|
|
|
18622
18619
|
}
|
|
18623
18620
|
});
|
|
18624
18621
|
}
|
|
18622
|
+
function fetchNgwExtent(options) {
|
|
18623
|
+
return options.connector.getResource(options.resourceId).then((resource) => {
|
|
18624
|
+
if (resource) {
|
|
18625
|
+
return fetchNgwResourceExtent(resource, options.connector);
|
|
18626
|
+
}
|
|
18627
|
+
});
|
|
18628
|
+
}
|
|
18625
18629
|
/** @deprecated use {@link fetchNgwExtent} instead */
|
|
18626
18630
|
function fetchNgwResourceExtent(item, connector) {
|
|
18627
18631
|
if (item.webmap) {
|
|
@@ -19001,7 +19005,7 @@ async function createGeoJsonAdapter(props) {
|
|
|
19001
19005
|
const hasData = this.getLayers && this.getLayers().length;
|
|
19002
19006
|
const strategy = this.options.strategy;
|
|
19003
19007
|
if ((strategy === null || strategy === void 0 ? void 0 : strategy.startsWith('BBOX')) || hasData) {
|
|
19004
|
-
return
|
|
19008
|
+
return fetchNgwExtent({ connector, resourceId: item.resource.id });
|
|
19005
19009
|
}
|
|
19006
19010
|
else {
|
|
19007
19011
|
if (super.getBounds) {
|
|
@@ -21423,9 +21427,9 @@ class NgwMap extends WebMap {
|
|
|
21423
21427
|
*
|
|
21424
21428
|
* @example
|
|
21425
21429
|
* ```javascript
|
|
21426
|
-
* //
|
|
21430
|
+
* // Add raster layer resourceId is the style of 4004 layer
|
|
21427
21431
|
* ngwMap.addNgwLayer({ resource: 4005 });
|
|
21428
|
-
* //
|
|
21432
|
+
* // Add vector data from layer GEOJSON source
|
|
21429
21433
|
* ngwMap.addNgwLayer({
|
|
21430
21434
|
* resource: 4038,
|
|
21431
21435
|
* adapter: 'GEOJSON',
|
|
@@ -21584,7 +21588,7 @@ class NgwMap extends WebMap {
|
|
|
21584
21588
|
*
|
|
21585
21589
|
* @example
|
|
21586
21590
|
* ```javascript
|
|
21587
|
-
* const ngwLayer = ngwMap.addNgwLayer({ id: 'ngw_layer_name',
|
|
21591
|
+
* const ngwLayer = ngwMap.addNgwLayer({ id: 'ngw_layer_name', resource: 4005 });
|
|
21588
21592
|
* ngwMap.fitLayer(ngwLayer);
|
|
21589
21593
|
* ngwMap.fitLayer('ngw_layer_name');
|
|
21590
21594
|
* ```
|