@tomtom-org/maps-sdk-plugin-agent-toolkit 0.6.1 → 0.7.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 +1 -2
- package/dist/index.d.ts +4 -7
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -175,7 +175,6 @@ const agent = createMapAgent(map, {
|
|
|
175
175
|
| `getStandardMapStyles` | List available standard map style presets |
|
|
176
176
|
| `setMapStandardStyle` | Switch map style (light, dark, satellite, driving, etc.) |
|
|
177
177
|
| `setLanguage` | Change the language for map labels and API responses |
|
|
178
|
-
| `toggleTilesBaseMapLayerGroups` | Show/hide named layer groups (buildings3D, roadLabels, water, etc.) |
|
|
179
178
|
| `toggleTilesPOIs` | Show/hide built-in map POI icons with optional category filtering |
|
|
180
179
|
|
|
181
180
|
### MapLibre direct access
|
|
@@ -511,7 +510,7 @@ const agent = createMapAgent(map, {
|
|
|
511
510
|
setLanguage: false,
|
|
512
511
|
setLayoutProperties: false,
|
|
513
512
|
setPaintProperties: false,
|
|
514
|
-
|
|
513
|
+
toggleTilesPOIs: false,
|
|
515
514
|
},
|
|
516
515
|
});
|
|
517
516
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseMapModule, CustomGeoJSONLayerSpec, CustomGeoJSONModule, GeometriesModule, GeometryTheme,
|
|
1
|
+
import { BaseMapModule, CustomGeoJSONLayerSpec, CustomGeoJSONModule, GeometriesModule, GeometryTheme, POIsModule, PlaceConnectionDisplay, PlacesModule, PlanningWaypoint, RoutingModule, StylingModule, TomTomMap, TrafficAreaAnalyticsConfig, TrafficAreaAnalyticsModule, TrafficFlowModule, TrafficIncidentOverlayModule, TrafficIncidentsModule } from "@tomtom-org/maps-sdk/map";
|
|
2
2
|
import { BBox, CommonPlaceProps, GeographyType, POICategory, Place, Places, PolygonFeature, PolygonFeatures, Route, Routes, TrafficAreaAnalytics, TrafficIncident, WaypointLike } from "@tomtom-org/maps-sdk/core";
|
|
3
3
|
import { ChartConfiguration } from "chart.js";
|
|
4
4
|
import { Map as Map$1 } from "maplibre-gl";
|
|
@@ -698,22 +698,20 @@ type BYODEntry = BaseEntry<FeatureCollection$1> & {
|
|
|
698
698
|
//#endregion
|
|
699
699
|
//#region src/state/base-map/state.d.ts
|
|
700
700
|
/**
|
|
701
|
-
* State for base map display: style, language, viewport
|
|
701
|
+
* State for base map display: style, language, viewport and layers.
|
|
702
702
|
*
|
|
703
703
|
* Provides direct access to the TomTomMap and MapLibre instances alongside
|
|
704
|
-
* lazy-initialized BaseMapModule and
|
|
704
|
+
* lazy-initialized BaseMapModule and StylingModule.
|
|
705
705
|
*
|
|
706
706
|
* @group Agent Toolkit
|
|
707
707
|
*/
|
|
708
708
|
declare class BaseMapState implements StateSlice {
|
|
709
709
|
readonly ttMap: TomTomMap;
|
|
710
710
|
private _baseMapModule?;
|
|
711
|
-
private _hillshadeModule?;
|
|
712
711
|
private _stylingModule?;
|
|
713
712
|
constructor(ttMap: TomTomMap);
|
|
714
713
|
get mapLibreMap(): Map$1;
|
|
715
714
|
getBaseMapModule(): Promise<BaseMapModule>;
|
|
716
|
-
getHillshadeModule(): Promise<HillshadeModule>;
|
|
717
715
|
getStylingModule(): Promise<StylingModule>;
|
|
718
716
|
reset(): void;
|
|
719
717
|
}
|
|
@@ -3916,7 +3914,6 @@ export declare const DEFAULT_TOOLS: {
|
|
|
3916
3914
|
getStandardMapStyles: ToolDefinition;
|
|
3917
3915
|
setMapStandardStyle: ToolDefinition;
|
|
3918
3916
|
setLanguage: ToolDefinition;
|
|
3919
|
-
toggleTilesBaseMapLayerGroups: ToolDefinition;
|
|
3920
3917
|
toggleTilesPOIs: ToolDefinition;
|
|
3921
3918
|
describeMapStyling: ToolDefinition;
|
|
3922
3919
|
setMapStyling: ToolDefinition;
|
|
@@ -4119,7 +4116,7 @@ export type ToolState = {
|
|
|
4119
4116
|
mapPOIs: MapPOIsState;
|
|
4120
4117
|
/** Route calculation, waypoint management, and planning parameter state. */
|
|
4121
4118
|
routing: RoutingState;
|
|
4122
|
-
/** Base map display: style, language, viewport
|
|
4119
|
+
/** Base map display: style, language, viewport and layers. */
|
|
4123
4120
|
baseMap: BaseMapState;
|
|
4124
4121
|
/** Traffic tile overlays: flow tiles + incident overlay tiles. */
|
|
4125
4122
|
trafficTiles: TrafficTilesState;
|