@mapcreator/sdk 0.0.9 → 0.0.10
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/dist/{esm/HighlightManager.d.ts → HighlightManager.d.ts} +2 -2
- package/dist/{esm/MCMap.d.ts → MCMap.d.ts} +1 -1
- package/dist/{esm/PopupManager.d.ts → PopupManager.d.ts} +4 -4
- package/dist/{esm/Registry.d.ts → Registry.d.ts} +3 -3
- package/dist/{esm/adornments → adornments}/categoricalLegend.d.ts +1 -1
- package/dist/{esm/adornments → adornments}/connectedLegend.d.ts +2 -2
- package/dist/{esm/adornments → adornments}/customAdornment.d.ts +1 -1
- package/dist/{esm/adornments → adornments}/heading.d.ts +1 -1
- package/dist/adornments/insetMap.d.ts +3 -0
- package/dist/{esm/adornments → adornments}/manualLegend.d.ts +1 -1
- package/dist/adornments/northArrow.d.ts +3 -0
- package/dist/adornments/scalebar.d.ts +3 -0
- package/dist/{esm/constants → constants}/index.d.ts +2 -2
- package/dist/{esm/controls → controls}/fullscreenControls.d.ts +1 -1
- package/dist/{esm/controls → controls}/geocoderControl.d.ts +1 -1
- package/dist/{esm/controls → controls}/geolocationControls.d.ts +1 -1
- package/dist/controls/refreshMapControls.d.ts +3 -0
- package/dist/controls/webControls.d.ts +4 -0
- package/dist/{esm/controls → controls}/zoomControls.d.ts +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/locales/da_DK/strings.json.d.ts +10 -0
- package/dist/locales/de_DE/strings.json.d.ts +10 -0
- package/dist/locales/en_GB/strings.json.d.ts +10 -0
- package/dist/locales/es_ES/strings.json.d.ts +10 -0
- package/dist/locales/fr_FR/strings.json.d.ts +10 -0
- package/dist/locales/it_IT/strings.json.d.ts +10 -0
- package/dist/locales/nl_NL/strings.json.d.ts +10 -0
- package/dist/mapcreator-sdk.js +39590 -0
- package/dist/models/area.d.ts +5 -0
- package/dist/models/circle.d.ts +5 -0
- package/dist/models/dot.d.ts +3 -0
- package/dist/models/line.d.ts +4 -0
- package/dist/models/marker.d.ts +5 -0
- package/dist/models/polygon.d.ts +5 -0
- package/dist/{esm/renderAdornments.d.ts → renderAdornments.d.ts} +3 -3
- package/dist/{esm/types → types}/index.d.ts +1 -1
- package/dist/{esm/types → types}/mapstyle.d.ts +2 -6
- package/dist/{esm/utils → utils}/choropleth.d.ts +3 -3
- package/dist/{esm/utils → utils}/geolocation.d.ts +1 -1
- package/dist/{esm/utils → utils}/graphhopper.d.ts +1 -1
- package/dist/{esm/utils → utils}/helpers.d.ts +2 -2
- package/dist/{esm/utils → utils}/language.d.ts +1 -1
- package/dist/{esm/utils → utils}/models.d.ts +4 -4
- package/dist/{esm/utils → utils}/overlays.d.ts +1 -1
- package/dist/{esm/utils → utils}/svgHelpers.d.ts +3 -4
- package/dist/{esm/utils → utils}/template.d.ts +2 -2
- package/dist/{esm/utils → utils}/youtube.d.ts +1 -1
- package/package.json +7 -6
- package/dist/esm/HighlightManager.js +0 -203
- package/dist/esm/MCMap.js +0 -254
- package/dist/esm/PopupManager.js +0 -297
- package/dist/esm/Registry.js +0 -74
- package/dist/esm/adornments/categoricalLegend.js +0 -141
- package/dist/esm/adornments/connectedLegend.js +0 -393
- package/dist/esm/adornments/customAdornment.js +0 -29
- package/dist/esm/adornments/heading.js +0 -71
- package/dist/esm/adornments/insetMap.d.ts +0 -3
- package/dist/esm/adornments/insetMap.js +0 -351
- package/dist/esm/adornments/manualLegend.js +0 -15
- package/dist/esm/adornments/northArrow.d.ts +0 -3
- package/dist/esm/adornments/northArrow.js +0 -24
- package/dist/esm/adornments/scalebar.d.ts +0 -3
- package/dist/esm/adornments/scalebar.js +0 -176
- package/dist/esm/constants/index.js +0 -53
- package/dist/esm/controls/controls.js +0 -7
- package/dist/esm/controls/fullscreenControls.js +0 -29
- package/dist/esm/controls/geocoderControl.js +0 -202
- package/dist/esm/controls/geolocationControls.js +0 -65
- package/dist/esm/controls/refreshMapControls.d.ts +0 -3
- package/dist/esm/controls/refreshMapControls.js +0 -26
- package/dist/esm/controls/webControls.d.ts +0 -4
- package/dist/esm/controls/webControls.js +0 -40
- package/dist/esm/controls/zoomControls.js +0 -23
- package/dist/esm/i18n.js +0 -21
- package/dist/esm/index.d.ts +0 -5
- package/dist/esm/index.js +0 -5
- package/dist/esm/locales/da_DK/strings.json +0 -7
- package/dist/esm/locales/de_DE/strings.json +0 -7
- package/dist/esm/locales/en_GB/strings.json +0 -7
- package/dist/esm/locales/es_ES/strings.json +0 -7
- package/dist/esm/locales/fr_FR/strings.json +0 -7
- package/dist/esm/locales/it_IT/strings.json +0 -7
- package/dist/esm/locales/nl_NL/strings.json +0 -7
- package/dist/esm/models/area.d.ts +0 -5
- package/dist/esm/models/area.js +0 -165
- package/dist/esm/models/circle.d.ts +0 -5
- package/dist/esm/models/circle.js +0 -110
- package/dist/esm/models/dot.d.ts +0 -3
- package/dist/esm/models/dot.js +0 -42
- package/dist/esm/models/line.d.ts +0 -4
- package/dist/esm/models/line.js +0 -117
- package/dist/esm/models/marker.d.ts +0 -5
- package/dist/esm/models/marker.js +0 -179
- package/dist/esm/models/polygon.d.ts +0 -5
- package/dist/esm/models/polygon.js +0 -80
- package/dist/esm/renderAdornments.js +0 -129
- package/dist/esm/types/geometry.js +0 -1
- package/dist/esm/types/index.js +0 -1
- package/dist/esm/types/jobObject.js +0 -1
- package/dist/esm/types/mapstyle.js +0 -1
- package/dist/esm/utils/browser.js +0 -6
- package/dist/esm/utils/choropleth.js +0 -110
- package/dist/esm/utils/fullscreen.js +0 -40
- package/dist/esm/utils/geolocation.js +0 -93
- package/dist/esm/utils/graphhopper.js +0 -41
- package/dist/esm/utils/helpers.js +0 -116
- package/dist/esm/utils/language.js +0 -170
- package/dist/esm/utils/models.js +0 -103
- package/dist/esm/utils/overlays.js +0 -87
- package/dist/esm/utils/scalebar.js +0 -52
- package/dist/esm/utils/svgHelpers.js +0 -1512
- package/dist/esm/utils/template.js +0 -120
- package/dist/esm/utils/youtube.js +0 -64
- /package/dist/{esm/controls → controls}/controls.d.ts +0 -0
- /package/dist/{esm/i18n.d.ts → i18n.d.ts} +0 -0
- /package/dist/{esm/types → types}/geometry.d.ts +0 -0
- /package/dist/{esm/types → types}/jobObject.d.ts +0 -0
- /package/dist/{esm/utils → utils}/browser.d.ts +0 -0
- /package/dist/{esm/utils → utils}/fullscreen.d.ts +0 -0
- /package/dist/{esm/utils → utils}/scalebar.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { Map } from '@mapcreator/maplibre-gl';
|
|
2
|
+
import { PopupElement } from './Registry';
|
|
3
3
|
export declare class HighlightManager {
|
|
4
4
|
private map;
|
|
5
5
|
private popupElements;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { Map as MapLibre, MapGeoJSONFeature, MapLayerMouseEvent, LngLatLike } from '@mapcreator/maplibre-gl';
|
|
2
|
+
import { JobObject, PopupPosition } from './types/jobObject';
|
|
3
|
+
import { PopupElement } from './Registry';
|
|
4
|
+
import { Mode } from './types';
|
|
5
5
|
export declare class PopupManager {
|
|
6
6
|
private map;
|
|
7
7
|
private popupPosition;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Position } from './types/geometry';
|
|
2
|
+
import { JobObject, JobObjectArea, JobObjectCircle, JobObjectDot, JobObjectLine, JobObjectMarker, JobObjectPolygon, PopupMedia, JobObjectDataBindings } from './types/jobObject';
|
|
3
|
+
import { LngLat, MapGeoJSONFeature } from '@mapcreator/maplibre-gl';
|
|
4
4
|
type Model = JobObjectArea | JobObjectCircle | JobObjectDot | JobObjectLine | JobObjectMarker | JobObjectPolygon;
|
|
5
5
|
export type PopupElement = {
|
|
6
6
|
groupId: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JobObjectManualLegend } from '../types/jobObject';
|
|
2
2
|
export declare function getCategoricalLegendSvg(legend: JobObjectManualLegend, defaultFont: string): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Map as MapLibre } from '@mapcreator/maplibre-gl';
|
|
2
|
+
import { JobObject, JobObjectConnectedLegend } from '../types/jobObject';
|
|
3
3
|
export declare function useConnectedLegend(legend: JobObjectConnectedLegend, jobObject: JobObject, map: MapLibre, vapiUrl: string, accessToken: string): HTMLElement;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JobObjectCustomAdornment } from '../types/jobObject';
|
|
2
2
|
export declare function useCustomAdornment(adornment: JobObjectCustomAdornment): HTMLElement;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JobObjectHeading } from '../types/jobObject';
|
|
2
2
|
export declare function useHeading(heading: JobObjectHeading, vapiUrl: string, accessToken: string): HTMLElement;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JobObjectManualLegend } from '../types/jobObject';
|
|
2
2
|
export declare function useManualLegend(legend: JobObjectManualLegend, vapiUrl: string, accessToken: string): HTMLElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { AdornmentPosition } from '../types/jobObject';
|
|
2
|
+
import { SkySpecification } from '@mapcreator/maplibre-gl';
|
|
3
3
|
export declare const defaultSky: SkySpecification;
|
|
4
4
|
type PositionConfig = {
|
|
5
5
|
x: 'left' | 'right' | 'center';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Map } from '@mapcreator/maplibre-gl';
|
|
2
2
|
export declare function useFullScreenButton(map: Map): HTMLElement;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Map } from '@mapcreator/maplibre-gl';
|
|
2
2
|
export declare function useGeolocationButton(map: Map): HTMLElement;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JobObjectWebControls } from '../types/jobObject';
|
|
2
|
+
import { InitialPositionInfo } from '../types';
|
|
3
|
+
import { Map } from '@mapcreator/maplibre-gl';
|
|
4
|
+
export declare function useWebControls(webControls: JobObjectWebControls, map: Map, initialPosition: InitialPositionInfo): HTMLElement;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"search": "Search",
|
|
3
|
+
"videoAlert": "The video will only work when you publish the map",
|
|
4
|
+
"mobileHelpText": "Use two fingers to move the map",
|
|
5
|
+
"windowsHelpText": "Use Ctrl + scroll to zoom the map",
|
|
6
|
+
"macHelpText": "Use ⌘ + scroll to zoom the map"
|
|
7
|
+
}
|
|
8
|
+
;
|
|
9
|
+
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"search": "Suche",
|
|
3
|
+
"videoAlert": "Das Video ist in der veröffentlichten Karte sichtbar.",
|
|
4
|
+
"mobileHelpText": "Verwenden Sie zwei Finger um die Karte zu bewegen",
|
|
5
|
+
"windowsHelpText": "Verwenden Sie Strg + Scroll um in der Karte zu zoomen",
|
|
6
|
+
"macHelpText": "Verwenden Sie ⌘ + Scroll um in der Karte zu zoomen"
|
|
7
|
+
}
|
|
8
|
+
;
|
|
9
|
+
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"search": "Search",
|
|
3
|
+
"videoAlert": "The video will only work when you publish the map",
|
|
4
|
+
"mobileHelpText": "Use two fingers to move the map",
|
|
5
|
+
"windowsHelpText": "Use Ctrl + scroll to zoom the map",
|
|
6
|
+
"macHelpText": "Use ⌘ + scroll to zoom the map"
|
|
7
|
+
}
|
|
8
|
+
;
|
|
9
|
+
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"search": "Buscar",
|
|
3
|
+
"videoAlert": "The video will only work when you publish the map",
|
|
4
|
+
"mobileHelpText": "Use dos dedos para mover el mapa",
|
|
5
|
+
"windowsHelpText": "Use Ctrl + desplazamiento para hacer zoom en el mapa",
|
|
6
|
+
"macHelpText": "Use ⌘ + desplazamiento para hacer zoom en el mapa"
|
|
7
|
+
}
|
|
8
|
+
;
|
|
9
|
+
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"search": "Rechercher",
|
|
3
|
+
"videoAlert": "Votre vidéo sera diffusée sur la carte publiée",
|
|
4
|
+
"mobileHelpText": "Utilisez deux doigts pour déplacer la carte",
|
|
5
|
+
"windowsHelpText": "Utilisez Ctrl + défilement pour zoomer sur la carte",
|
|
6
|
+
"macHelpText": "Utilisez ⌘ + défilement pour zoomer sur la carte"
|
|
7
|
+
}
|
|
8
|
+
;
|
|
9
|
+
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"search": "Cercare",
|
|
3
|
+
"videoAlert": "The video will only work when you publish the map",
|
|
4
|
+
"mobileHelpText": "Usa due dita per muovere la mappa",
|
|
5
|
+
"windowsHelpText": "Usa Ctrl + Scroll per ingrandire la mappa",
|
|
6
|
+
"macHelpText": "Usa ⌘ + Scroll per ingrandire la mappa"
|
|
7
|
+
}
|
|
8
|
+
;
|
|
9
|
+
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"search": "Zoeken",
|
|
3
|
+
"videoAlert": "The video will only work when you publish the map",
|
|
4
|
+
"mobileHelpText": "Gebruik twee vingers om de kaart te bewegen",
|
|
5
|
+
"windowsHelpText": "Gebruik Ctrl + Scroll om de kaart te zoomen",
|
|
6
|
+
"macHelpText": "Gebruik ⌘ + Scroll om de kaart te zoomen"
|
|
7
|
+
}
|
|
8
|
+
;
|
|
9
|
+
|
|
10
|
+
export default _default;
|