@geolonia/maps-core 0.2.0 → 0.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/dist/npm/index.cjs +66 -343
- package/dist/npm/index.d.cts +12 -14
- package/dist/npm/index.d.ts +12 -14
- package/dist/npm/index.js +50 -327
- package/package.json +9 -7
package/dist/npm/index.d.cts
CHANGED
|
@@ -25,10 +25,7 @@ declare class CustomAttributionControl implements IControl {
|
|
|
25
25
|
private _shadowContainer;
|
|
26
26
|
private _innerContainer;
|
|
27
27
|
private _compactButton;
|
|
28
|
-
private _editLink;
|
|
29
28
|
private _attribHTML;
|
|
30
|
-
private styleId;
|
|
31
|
-
private styleOwner;
|
|
32
29
|
private printQuery;
|
|
33
30
|
private onMediaPrintChange;
|
|
34
31
|
constructor(options?: CustomAttributionControlOptions);
|
|
@@ -84,7 +81,7 @@ type GeoloniaMapOptions = MapOptions & {
|
|
|
84
81
|
/** Geolonia logo control */
|
|
85
82
|
geoloniaControl?: boolean | ControlPosition;
|
|
86
83
|
/** GeoJSON URL or object for SimpleStyle */
|
|
87
|
-
geojson?: string | GeoJSON.
|
|
84
|
+
geojson?: string | GeoJSON.FeatureCollection;
|
|
88
85
|
/** Enable clustering for GeoJSON points */
|
|
89
86
|
cluster?: boolean;
|
|
90
87
|
/** Cluster marker color */
|
|
@@ -143,6 +140,7 @@ declare class Keyring {
|
|
|
143
140
|
}
|
|
144
141
|
declare const keyring: Keyring;
|
|
145
142
|
|
|
143
|
+
type FeatureCollection = GeoJSON.FeatureCollection;
|
|
146
144
|
declare class SimpleStyle {
|
|
147
145
|
_loadingPromise: Promise<unknown> | undefined;
|
|
148
146
|
private callFitBounds;
|
|
@@ -150,9 +148,9 @@ declare class SimpleStyle {
|
|
|
150
148
|
private map;
|
|
151
149
|
private options;
|
|
152
150
|
private _eventHandlers;
|
|
153
|
-
constructor(geojson: string |
|
|
154
|
-
updateData(geojson:
|
|
155
|
-
addTo(map:
|
|
151
|
+
constructor(geojson: string | FeatureCollection, options?: Record<string, unknown>);
|
|
152
|
+
updateData(geojson: FeatureCollection): this;
|
|
153
|
+
addTo(map: Map): this;
|
|
156
154
|
fitBounds(options?: {}): this;
|
|
157
155
|
/**
|
|
158
156
|
* Set polygon geometries.
|
|
@@ -166,39 +164,39 @@ declare class SimpleStyle {
|
|
|
166
164
|
* Setup point geometries.
|
|
167
165
|
*/
|
|
168
166
|
setPointGeometries(): void;
|
|
169
|
-
setPopup(map:
|
|
167
|
+
setPopup(map: Map, source: string): Promise<void>;
|
|
170
168
|
/**
|
|
171
169
|
* Setup cluster markers
|
|
172
170
|
*/
|
|
173
171
|
setCluster(): void;
|
|
174
172
|
remove(): this;
|
|
175
|
-
setGeoJSON(geojson: string |
|
|
173
|
+
setGeoJSON(geojson: string | FeatureCollection): void;
|
|
176
174
|
}
|
|
177
175
|
|
|
178
176
|
declare class SimpleStyleVector {
|
|
179
177
|
private url;
|
|
180
178
|
private sourceName;
|
|
181
179
|
constructor(url: string);
|
|
182
|
-
addTo(map:
|
|
180
|
+
addTo(map: Map): void;
|
|
183
181
|
/**
|
|
184
182
|
* Set polygon geometries.
|
|
185
183
|
*
|
|
186
184
|
* @param map
|
|
187
185
|
*/
|
|
188
|
-
setPolygonGeometries(map:
|
|
186
|
+
setPolygonGeometries(map: Map): void;
|
|
189
187
|
/**
|
|
190
188
|
* Set line geometries.
|
|
191
189
|
*
|
|
192
190
|
* @param map
|
|
193
191
|
*/
|
|
194
|
-
setLineGeometries(map:
|
|
192
|
+
setLineGeometries(map: Map): void;
|
|
195
193
|
/**
|
|
196
194
|
* Setup point geometries.
|
|
197
195
|
*
|
|
198
196
|
* @param map
|
|
199
197
|
*/
|
|
200
|
-
setPointGeometries(map:
|
|
201
|
-
setPopup(map:
|
|
198
|
+
setPointGeometries(map: Map): void;
|
|
199
|
+
setPopup(map: Map, source: string): Promise<void>;
|
|
202
200
|
}
|
|
203
201
|
|
|
204
202
|
declare const VERSION = "0.1.0";
|
package/dist/npm/index.d.ts
CHANGED
|
@@ -25,10 +25,7 @@ declare class CustomAttributionControl implements IControl {
|
|
|
25
25
|
private _shadowContainer;
|
|
26
26
|
private _innerContainer;
|
|
27
27
|
private _compactButton;
|
|
28
|
-
private _editLink;
|
|
29
28
|
private _attribHTML;
|
|
30
|
-
private styleId;
|
|
31
|
-
private styleOwner;
|
|
32
29
|
private printQuery;
|
|
33
30
|
private onMediaPrintChange;
|
|
34
31
|
constructor(options?: CustomAttributionControlOptions);
|
|
@@ -84,7 +81,7 @@ type GeoloniaMapOptions = MapOptions & {
|
|
|
84
81
|
/** Geolonia logo control */
|
|
85
82
|
geoloniaControl?: boolean | ControlPosition;
|
|
86
83
|
/** GeoJSON URL or object for SimpleStyle */
|
|
87
|
-
geojson?: string | GeoJSON.
|
|
84
|
+
geojson?: string | GeoJSON.FeatureCollection;
|
|
88
85
|
/** Enable clustering for GeoJSON points */
|
|
89
86
|
cluster?: boolean;
|
|
90
87
|
/** Cluster marker color */
|
|
@@ -143,6 +140,7 @@ declare class Keyring {
|
|
|
143
140
|
}
|
|
144
141
|
declare const keyring: Keyring;
|
|
145
142
|
|
|
143
|
+
type FeatureCollection = GeoJSON.FeatureCollection;
|
|
146
144
|
declare class SimpleStyle {
|
|
147
145
|
_loadingPromise: Promise<unknown> | undefined;
|
|
148
146
|
private callFitBounds;
|
|
@@ -150,9 +148,9 @@ declare class SimpleStyle {
|
|
|
150
148
|
private map;
|
|
151
149
|
private options;
|
|
152
150
|
private _eventHandlers;
|
|
153
|
-
constructor(geojson: string |
|
|
154
|
-
updateData(geojson:
|
|
155
|
-
addTo(map:
|
|
151
|
+
constructor(geojson: string | FeatureCollection, options?: Record<string, unknown>);
|
|
152
|
+
updateData(geojson: FeatureCollection): this;
|
|
153
|
+
addTo(map: Map): this;
|
|
156
154
|
fitBounds(options?: {}): this;
|
|
157
155
|
/**
|
|
158
156
|
* Set polygon geometries.
|
|
@@ -166,39 +164,39 @@ declare class SimpleStyle {
|
|
|
166
164
|
* Setup point geometries.
|
|
167
165
|
*/
|
|
168
166
|
setPointGeometries(): void;
|
|
169
|
-
setPopup(map:
|
|
167
|
+
setPopup(map: Map, source: string): Promise<void>;
|
|
170
168
|
/**
|
|
171
169
|
* Setup cluster markers
|
|
172
170
|
*/
|
|
173
171
|
setCluster(): void;
|
|
174
172
|
remove(): this;
|
|
175
|
-
setGeoJSON(geojson: string |
|
|
173
|
+
setGeoJSON(geojson: string | FeatureCollection): void;
|
|
176
174
|
}
|
|
177
175
|
|
|
178
176
|
declare class SimpleStyleVector {
|
|
179
177
|
private url;
|
|
180
178
|
private sourceName;
|
|
181
179
|
constructor(url: string);
|
|
182
|
-
addTo(map:
|
|
180
|
+
addTo(map: Map): void;
|
|
183
181
|
/**
|
|
184
182
|
* Set polygon geometries.
|
|
185
183
|
*
|
|
186
184
|
* @param map
|
|
187
185
|
*/
|
|
188
|
-
setPolygonGeometries(map:
|
|
186
|
+
setPolygonGeometries(map: Map): void;
|
|
189
187
|
/**
|
|
190
188
|
* Set line geometries.
|
|
191
189
|
*
|
|
192
190
|
* @param map
|
|
193
191
|
*/
|
|
194
|
-
setLineGeometries(map:
|
|
192
|
+
setLineGeometries(map: Map): void;
|
|
195
193
|
/**
|
|
196
194
|
* Setup point geometries.
|
|
197
195
|
*
|
|
198
196
|
* @param map
|
|
199
197
|
*/
|
|
200
|
-
setPointGeometries(map:
|
|
201
|
-
setPopup(map:
|
|
198
|
+
setPointGeometries(map: Map): void;
|
|
199
|
+
setPopup(map: Map, source: string): Promise<void>;
|
|
202
200
|
}
|
|
203
201
|
|
|
204
202
|
declare const VERSION = "0.1.0";
|