@konce-pt/map 0.16.1 → 0.18.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.
Files changed (2) hide show
  1. package/README.md +13 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://ui.konce.pt/images/koncept_ui_lib.png" alt="Koncept UI - Angular component library" width="100%" />
2
+ <img src="https://ui.konce.pt/images/koncept_ui_lib.png" alt="Koncept UI" width="100%" />
3
3
  </p>
4
4
 
5
5
  # @konce-pt/map
@@ -21,7 +21,7 @@ npm i @konce-pt/map
21
21
  import { clusterLocations, zoomForBounds, isOpenAt, createLeafletEngine } from '@konce-pt/map';
22
22
 
23
23
  // Klastrowanie na siatce pikseli - wynik zależy od zoomu, nie od samych współrzędnych.
24
- clusterLocations(locations, 12, { gridSize: 60 });
24
+ clusterLocations(locations, { zoom: 12, gridSize: 60 });
25
25
 
26
26
  // Zoom, przy którym prostokąt mieści się w kontenerze.
27
27
  zoomForBounds(bounds, { width: 800, height: 480 });
@@ -35,15 +35,19 @@ const engine = createLeafletEngine({ maxZoom: 19 });
35
35
 
36
36
  ## API
37
37
 
38
- - **Geometria** - `project`, `unproject`, `boundsOf`, `boundsCenter`, `boundsContain`, `padBounds`,
39
- `isFittableBounds`, `haversine`, `metersPerPixel`, `zoomForBounds`, `clampLat`, `normalizeLng`
40
- - **Klastry** - `clusterLocations`, `dominantCategory`, `countByCategory`, `isSplittable`
38
+ - **Geometria** - `project`, `unproject`, `worldSize`, `boundsOf`, `boundsCenter`, `centerOfBounds`,
39
+ `boundsContain`, `padBounds`, `isFittableBounds`, `haversine`, `metersPerPixel`, `zoomForBounds`,
40
+ `clampLat`, `normalizeLng`
41
+ - **Klastry** - `clusterLocations`, `isCluster`, `dominantCategory`, `countByCategory`, `isSplittable`
41
42
  - **Znaczniki** - `renderMarkerHtml`, `renderClusterHtml`, `renderUserMarkerHtml`, `colorVarOf`,
42
- `contrastVarOf`, `foregroundVarOf`, `clusterTier`
43
- - **Godziny** - `parseTime`, `formatTime`, `isOpenAt`, `isAlwaysOpen`, `nextChange`, `groupWeek`
44
- - **Kraje i format** - `KPT_MAP_COUNTRIES`, `countryPreset`, `resolveCountryView`,
45
- `formatDistance`, `formatLatLng`, `normalizeUrl`, `prettyUrl`
43
+ `contrastVarOf`, `foregroundVarOf`, `clusterTier`, `escapeHtml`
44
+ - **Godziny** - `parseTime`, `formatTime`, `isOpenAt`, `isAlwaysOpen`, `nextChange`, `groupWeek`,
45
+ `emptyWeek`, `isoWeekday`, `weekdayName`
46
+ - **Kraje i format** - `KPT_MAP_COUNTRIES`, `countryCodes`, `countryPreset`, `resolveCountryView`,
47
+ `formatDistance`, `formatLatLng`, `formatCount`, `normalizeUrl`, `prettyUrl`
46
48
  - **Silniki** - `createLeafletEngine`, `createGoogleEngine`, `loadGoogleMapsApi`
49
+ - **Stałe** - `KPT_CLUSTER_DEFAULTS`, `KPT_TILE_SIZE`, `KPT_EARTH_RADIUS`, `KPT_MAX_LATITUDE`,
50
+ `KPT_MIN_FIT_SPAN`, `KPT_MAP_DEFAULT_*` (kafelki, atrybucja, kraj)
47
51
  - **Typy** - `KptMapEngine`, `KptMapLocation`, `KptMapCategory`, `KptMapPoi` i reszta kontraktu
48
52
 
49
53
  Pełny opis: [`llms.txt`](https://ui.konce.pt/llms/map/llms.txt) (EN)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konce-pt/map",
3
- "version": "0.16.1",
3
+ "version": "0.18.0",
4
4
  "description": "Map core for Koncept UI - projection and bounds maths, marker clustering, opening hours, marker markup, plus the Leaflet and Google engine adapters. Framework-free TypeScript, zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "author": "konce.pt",