@road-labs/map-sdk 0.0.28-rc.0 → 0.0.28-rc.4
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 +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,7 +40,8 @@ The `App` component accepts the following props:
|
|
|
40
40
|
| `enableSidebar` | No | Both | Both | Enables sidebar with location/cluster information when selected. | `false` |
|
|
41
41
|
| `enablePlacesSearch` | No | Both | Both | Enables address search input at the top of the map. | `true` |
|
|
42
42
|
| `locationId` | No | Both | Both | If provided, the map will zoom to the given `locationId` and open its sidebar (if enabled). Overrides `position`. | `-` |
|
|
43
|
-
| `locationBaseUrl` | No | Both | Both | Base URL for location data.
|
|
43
|
+
| `locationBaseUrl` | No | Both | Both | Base URL for location data. When set, the location name links to `locationBaseUrl/{locationId}`. | `-` |
|
|
44
|
+
| `locationUrlTemplate` | No | v2 | cpo | URL template that makes the location name in the details view a clickable link, opening in a new tab. The `{{locationId}}` placeholder is replaced with the location id (e.g. `https://example.com/loc/{{locationId}}/details`). Applies only when `context` is `cpo`. Takes precedence over `locationBaseUrl`. | `-` |
|
|
44
45
|
| `apiRoot` | No | Both | Both | The root URL of the API. | `-` |
|
|
45
46
|
| `googleApiKey` | No | Both | Both | Google Maps API key. If not provided, you can set your own Google API key. | `-` |
|
|
46
47
|
| `theming {}` | No | Both | Both | Controls widget look and feel with keys: `brandColor`, `backgroundColor`, `textColor`, `borderColor`, `fontFamily`. Accepts HEX values (e.g. `#ff3d00`). If `backgroundColor` is provided without `shadowRoot`, a shadow root will be automatically created. | `-` |
|