From 1f7809f0d162fed444605527215fd8e8fa5e8635 Mon Sep 17 00:00:00 2001 From: Joxit Date: Tue, 26 Nov 2024 11:02:23 +0100 Subject: [PATCH] feat(JawgPlaces): add support `all` or a boolean on Leaflet and MapLibre `marker` option Now MapLibre is using uniq id on layers and sources Improve zoom to features on Leaflet and MapLibre --- package.json | 2 +- src/places-js.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index de2005d..f751d8d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jawg/types", - "version": "1.0.6", + "version": "1.1.0", "description": "Shared TypeScript definitions for Jawg Maps projects", "types": "./index.d.ts", "type": "module", diff --git a/src/places-js.d.ts b/src/places-js.d.ts index cd0a186..f27ed93 100644 --- a/src/places-js.d.ts +++ b/src/places-js.d.ts @@ -439,7 +439,7 @@ declare namespace JawgPlaces { /** * Option to configure result markers on the map. */ - marker?: MapGLMarkerOptions; + marker?: MapGLMarkerOptions | boolean | 'all'; /** * Option to configure transition on result selection. */ @@ -475,7 +475,7 @@ declare namespace JawgPlaces { /** * Option to configure result markers on the map. */ - marker?: LeafletMarkerOptions; + marker?: LeafletMarkerOptions | boolean | 'all'; /** * Option to configure transition on result selection. */