@mapxus/mapxus-map-jp 7.3.0 → 7.4.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.
- package/README.md +12 -7
- package/index.d.ts +31 -7
- package/index.js +1 -10
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -16,22 +16,27 @@ import maplibregl from 'maplibre-gl';
|
|
|
16
16
|
import * as MapxusMap from '@mapxus/mapxus-map';
|
|
17
17
|
|
|
18
18
|
const maplibreMap = new maplibregl.Map({
|
|
19
|
-
container: 'map'
|
|
19
|
+
container: 'map',
|
|
20
|
+
zoom: 17,
|
|
20
21
|
});
|
|
21
22
|
|
|
22
23
|
const map = new MapxusMap.Map({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
map: maplibreMap,
|
|
25
|
+
appId: 'your_appId',
|
|
26
|
+
secret: 'your_secret',
|
|
27
|
+
buildingId: 'building_id', // example: elements_hk_dc005f
|
|
28
|
+
// or
|
|
29
|
+
// venueId: 'venue_id',
|
|
30
|
+
// floorId: 'floor_id',
|
|
31
|
+
// poiId: 'poi_id',
|
|
27
32
|
});
|
|
28
33
|
```
|
|
29
34
|
|
|
30
|
-
More sample page at [
|
|
35
|
+
More sample page at [MapxusMap Sample Web](https://map-service.mapxus.co.jp/bssww/initMapByVenue)
|
|
31
36
|
|
|
32
37
|
## Documentation
|
|
33
38
|
|
|
34
|
-
Docs are available at [
|
|
39
|
+
Docs are available at [MapxusMap JS SDK API Docs](https://map-service.mapxus.co.jp/dpw/digitalMapWeb)
|
|
35
40
|
|
|
36
41
|
## License
|
|
37
42
|
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator
|
|
1
|
+
// Generated by dts-bundle-generator v8.1.2
|
|
2
2
|
|
|
3
3
|
import { AxiosPromise } from 'axios';
|
|
4
4
|
import { ControlPosition, FilterSpecification, IControl, LngLat, Map as MaplibreMap, Map as maplibreMap, MapGeoJSONFeature, MapLayerEventType, PaddingOptions, PointLike, RequireAtLeastOne } from 'maplibre-gl';
|
|
@@ -178,7 +178,17 @@ export declare class Indoor extends Evented {
|
|
|
178
178
|
private _dispatch;
|
|
179
179
|
private readonly _fitBuildingBounds;
|
|
180
180
|
private readonly _boundsPadding;
|
|
181
|
-
|
|
181
|
+
private readonly _isInitialIndoor;
|
|
182
|
+
private _maplibreMapLoaded;
|
|
183
|
+
private _indoorMapLoaded;
|
|
184
|
+
constructor(props: {
|
|
185
|
+
map: maplibreMap;
|
|
186
|
+
isInitialIndoor: boolean;
|
|
187
|
+
isHiddenOutdoor: boolean;
|
|
188
|
+
floorSwitchMode: FloorSwitchMode;
|
|
189
|
+
fitBuildingBounds: boolean;
|
|
190
|
+
boundsPadding: number | RequireAtLeastOne<PaddingOptions>;
|
|
191
|
+
});
|
|
182
192
|
/**
|
|
183
193
|
* @description Turn on indoor-outdoor switching.
|
|
184
194
|
*/
|
|
@@ -288,7 +298,7 @@ export declare class Indoor extends Evented {
|
|
|
288
298
|
private _getConditionsExpression;
|
|
289
299
|
private _loadData;
|
|
290
300
|
private _init;
|
|
291
|
-
private
|
|
301
|
+
private _filter;
|
|
292
302
|
private _clear;
|
|
293
303
|
private _updateFilter;
|
|
294
304
|
private _setPoiTextColor;
|
|
@@ -362,7 +372,6 @@ export declare class Map extends Evented {
|
|
|
362
372
|
private _poi;
|
|
363
373
|
private _initialHiddenLayers;
|
|
364
374
|
private _attributionControl;
|
|
365
|
-
private _mapZoom;
|
|
366
375
|
private _dispatch;
|
|
367
376
|
constructor(option: IMapOption);
|
|
368
377
|
/**
|
|
@@ -426,6 +435,19 @@ export declare class Map extends Evented {
|
|
|
426
435
|
* @return {MapGeoJSONFeature | undefined}
|
|
427
436
|
*/
|
|
428
437
|
getFeature(id: string): MapGeoJSONFeature | undefined;
|
|
438
|
+
/**
|
|
439
|
+
* @description Get features from bbox by coordinates [and ordinal].
|
|
440
|
+
* @param coordinates
|
|
441
|
+
* @param ordinal
|
|
442
|
+
*/
|
|
443
|
+
getIndoorFeaturesByCoordinates(coordinates: {
|
|
444
|
+
lng: number;
|
|
445
|
+
lat: number;
|
|
446
|
+
}, ordinal?: number): {
|
|
447
|
+
venue: MapGeoJSONFeature;
|
|
448
|
+
building: MapGeoJSONFeature;
|
|
449
|
+
level: MapGeoJSONFeature;
|
|
450
|
+
};
|
|
429
451
|
/**
|
|
430
452
|
* @description Get features from bbox by id. One id may correspond to multiple features.
|
|
431
453
|
* @param id
|
|
@@ -445,7 +467,7 @@ export declare class Map extends Evented {
|
|
|
445
467
|
selectBuildingById(buildingId: string, callback?: VoidFunction): Promise<void>;
|
|
446
468
|
/**
|
|
447
469
|
* @description Select or exit venue by id.
|
|
448
|
-
* @param venueId Exit
|
|
470
|
+
* @param venueId 'venueId' can be string or null. Exit indoors if venueId is null.
|
|
449
471
|
* @param callback Called after venue has been selected.
|
|
450
472
|
*/
|
|
451
473
|
selectVenueById(venueId: string | null, callback?: VoidFunction): Promise<void>;
|
|
@@ -521,7 +543,7 @@ export declare class Map extends Evented {
|
|
|
521
543
|
private _selectPoiById;
|
|
522
544
|
private _getBuildingIdByVenueId;
|
|
523
545
|
private _tilesRequestTransform;
|
|
524
|
-
private
|
|
546
|
+
private _checkMapZoom;
|
|
525
547
|
private _setMapStyle;
|
|
526
548
|
private _clickEventsDispatcher;
|
|
527
549
|
private _hideIndoorLayers;
|
|
@@ -876,6 +898,7 @@ export declare class VenuesService {
|
|
|
876
898
|
* @param page Default is 1.
|
|
877
899
|
*/
|
|
878
900
|
searchByGlobal(keywords: string, offset?: number, page?: number): AxiosPromise<IResponse<IResponseVenues>>;
|
|
901
|
+
private _changedRes;
|
|
879
902
|
}
|
|
880
903
|
export interface IResponseBuildings {
|
|
881
904
|
buildings: IBuilding[];
|
|
@@ -949,7 +972,8 @@ export interface IResponsePois {
|
|
|
949
972
|
}
|
|
950
973
|
export declare enum DistanceSearchType {
|
|
951
974
|
POINT = "Point",
|
|
952
|
-
POLYGON = "Polygon"
|
|
975
|
+
POLYGON = "Polygon",
|
|
976
|
+
GATE = "Gate"
|
|
953
977
|
}
|
|
954
978
|
export interface IPoiCategory {
|
|
955
979
|
category: string;
|