diff --git a/samples/add-map/index.ts b/samples/add-map/index.ts index 64d12dc7..1b20869d 100644 --- a/samples/add-map/index.ts +++ b/samples/add-map/index.ts @@ -12,6 +12,7 @@ function initMap(): void { // The map, centered at London map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 13, center: position, }); diff --git a/samples/datasets-api/index.ts b/samples/datasets-api/index.ts index 6c6bd0d8..3902c2e4 100644 --- a/samples/datasets-api/index.ts +++ b/samples/datasets-api/index.ts @@ -21,6 +21,7 @@ function initMap(): void { // [START woosmap_datasets_api_instantiate_map] map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, gestureHandling: "auto", defaultStyle: "streets", }); diff --git a/samples/directions-advanced/index.ts b/samples/directions-advanced/index.ts index 9495c0d9..e82275d0 100644 --- a/samples/directions-advanced/index.ts +++ b/samples/directions-advanced/index.ts @@ -524,6 +524,7 @@ function initUI(): void { function initMap(): void { map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 51.5074, lng: -0.1478 }, zoom: 10, }); diff --git a/samples/directions-simple/index.ts b/samples/directions-simple/index.ts index d4f47aa6..18f317d3 100644 --- a/samples/directions-simple/index.ts +++ b/samples/directions-simple/index.ts @@ -7,6 +7,7 @@ function initMap(): void { const directionsService = new woosmap.map.DirectionsService(); const directionsRenderer = new woosmap.map.DirectionsRenderer({}); map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 7, center: { lat: 43.5, diff --git a/samples/distance-isochrone/index.ts b/samples/distance-isochrone/index.ts index ee512c1d..85466b00 100644 --- a/samples/distance-isochrone/index.ts +++ b/samples/distance-isochrone/index.ts @@ -34,6 +34,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 9, center: centerLatLng, }, diff --git a/samples/distance-matrix-advanced/index.ts b/samples/distance-matrix-advanced/index.ts index f1ae83c9..9c5ba0ff 100644 --- a/samples/distance-matrix-advanced/index.ts +++ b/samples/distance-matrix-advanced/index.ts @@ -409,6 +409,7 @@ function initUI(): void { function initMap(): void { map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 51.4855, lng: -0.3179 }, zoom: 6, }); diff --git a/samples/distance-matrix/index.ts b/samples/distance-matrix/index.ts index f18c265c..eea41600 100644 --- a/samples/distance-matrix/index.ts +++ b/samples/distance-matrix/index.ts @@ -93,6 +93,7 @@ function calculateDistances(): void { function initMap(): void { map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 45.53, lng: 2.4 }, zoom: 10, }); diff --git a/samples/draw-shapes-events/index.ts b/samples/draw-shapes-events/index.ts index 4d813e28..ccdb565d 100644 --- a/samples/draw-shapes-events/index.ts +++ b/samples/draw-shapes-events/index.ts @@ -81,6 +81,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 31.54350013250679, lng: -97.13238669872247 }, zoom: 6.5, }, diff --git a/samples/draw-shapes/index.ts b/samples/draw-shapes/index.ts index 8efc8e62..4d6c8a33 100644 --- a/samples/draw-shapes/index.ts +++ b/samples/draw-shapes/index.ts @@ -9,6 +9,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, gestureHandling: "greedy", center: { lng: 3.878, lat: 43.611 }, zoom: 15, diff --git a/samples/event-simple/index.ts b/samples/event-simple/index.ts index 4688892a..ac1bac8c 100644 --- a/samples/event-simple/index.ts +++ b/samples/event-simple/index.ts @@ -7,6 +7,7 @@ function initMap() { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 13, center: position, }, diff --git a/samples/geolocation-api/index.ts b/samples/geolocation-api/index.ts index 6bdcfd10..5bbd0891 100644 --- a/samples/geolocation-api/index.ts +++ b/samples/geolocation-api/index.ts @@ -52,6 +52,7 @@ function renderUserLocationOnMap({ latitude, accuracy, longitude, viewport }) { zoom = 11; } map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: userPosition, zoom, }); diff --git a/samples/indoor-directions-service/index.ts b/samples/indoor-directions-service/index.ts index a3566ed0..ec581f49 100644 --- a/samples/indoor-directions-service/index.ts +++ b/samples/indoor-directions-service/index.ts @@ -9,6 +9,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 43.6066, lng: 3.9218 }, zoom: 19.5, }, diff --git a/samples/indoor-map-advanced/index.ts b/samples/indoor-map-advanced/index.ts index 69ee79b4..8514ff69 100644 --- a/samples/indoor-map-advanced/index.ts +++ b/samples/indoor-map-advanced/index.ts @@ -5,6 +5,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 43.6066, lng: 3.9218 }, zoom: 19.5, }, diff --git a/samples/indoor-map-simple/index.ts b/samples/indoor-map-simple/index.ts index 7493235c..c1d5909c 100644 --- a/samples/indoor-map-simple/index.ts +++ b/samples/indoor-map-simple/index.ts @@ -5,6 +5,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 43.6066, lng: 3.9218 }, zoom: 19.5, }, diff --git a/samples/indoor-navigation-widget/index.ts b/samples/indoor-navigation-widget/index.ts index 84a78952..59a43e95 100644 --- a/samples/indoor-navigation-widget/index.ts +++ b/samples/indoor-navigation-widget/index.ts @@ -9,7 +9,7 @@ function initMap(): void { venue = "gdn_doc"; map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, - { center: { lat: 43.6066, lng: 3.9218 } }, + { visualRefresh: true, center: { lat: 43.6066, lng: 3.9218 } }, ); const conf: woosmap.map.IndoorRendererOptions = { diff --git a/samples/indoor-widget-advanced/index.ts b/samples/indoor-widget-advanced/index.ts index 05ac8754..5d80084c 100644 --- a/samples/indoor-widget-advanced/index.ts +++ b/samples/indoor-widget-advanced/index.ts @@ -5,6 +5,7 @@ function initMap(): void { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 43.6066, lng: 3.9218 }, zoom: 5, }, diff --git a/samples/indoor-widget-simple/index.ts b/samples/indoor-widget-simple/index.ts index 48419588..9c08b57b 100644 --- a/samples/indoor-widget-simple/index.ts +++ b/samples/indoor-widget-simple/index.ts @@ -5,7 +5,7 @@ function initMap(): void { console.log("init map"); map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, - {}, + { visualRefresh: true }, ); const conf: woosmap.map.IndoorRendererOptions = { diff --git a/samples/infowindow-simple/index.ts b/samples/infowindow-simple/index.ts index 9f17b284..ec5a6a31 100644 --- a/samples/infowindow-simple/index.ts +++ b/samples/infowindow-simple/index.ts @@ -7,6 +7,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 10, center: { lat: 51.57, diff --git a/samples/localities-api-details-postalcodes/index.ts b/samples/localities-api-details-postalcodes/index.ts index 9b6b11fe..d0c186b8 100644 --- a/samples/localities-api-details-postalcodes/index.ts +++ b/samples/localities-api-details-postalcodes/index.ts @@ -36,6 +36,7 @@ function init(): void { function initMap(): void { map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 48.8534, lng: 2.3488, diff --git a/samples/localities-api-details/index.ts b/samples/localities-api-details/index.ts index d099d552..e352059e 100644 --- a/samples/localities-api-details/index.ts +++ b/samples/localities-api-details/index.ts @@ -15,6 +15,7 @@ let addressDetailsContainer: HTMLElement; function initMap(): void { map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 48.8534, lng: 2.3488, diff --git a/samples/localities-api-shape/index.ts b/samples/localities-api-shape/index.ts index e4833126..c2f6374a 100644 --- a/samples/localities-api-shape/index.ts +++ b/samples/localities-api-shape/index.ts @@ -16,6 +16,7 @@ let hasShape = false; function initMap(): void { map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 48.8534, lng: 2.3488, diff --git a/samples/localities-autocomplete/index.ts b/samples/localities-autocomplete/index.ts index 311bb479..7f913914 100644 --- a/samples/localities-autocomplete/index.ts +++ b/samples/localities-autocomplete/index.ts @@ -10,6 +10,7 @@ function initMap(): void { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 51.50940214, lng: -0.133012 }, zoom: 4, }, diff --git a/samples/localities-geocode/index.ts b/samples/localities-geocode/index.ts index 1a1c4f0a..5c5b54ed 100644 --- a/samples/localities-geocode/index.ts +++ b/samples/localities-geocode/index.ts @@ -10,6 +10,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 51.50940214, lng: -0.133012 }, zoom: 12, }, diff --git a/samples/localities-nearby-poi/index.ts b/samples/localities-nearby-poi/index.ts index 09c65e9b..214409aa 100644 --- a/samples/localities-nearby-poi/index.ts +++ b/samples/localities-nearby-poi/index.ts @@ -117,6 +117,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 40.71399, lng: -74.00499 }, zoom: 14, styles: [ diff --git a/samples/map-clustering-geojson/index.ts b/samples/map-clustering-geojson/index.ts index fb6ba595..87fb86ab 100644 --- a/samples/map-clustering-geojson/index.ts +++ b/samples/map-clustering-geojson/index.ts @@ -20,6 +20,7 @@ function initMap(): void { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 55.5, lng: -4, diff --git a/samples/map-clustering-stores/index.ts b/samples/map-clustering-stores/index.ts index 520ddf7d..3151cc3b 100644 --- a/samples/map-clustering-stores/index.ts +++ b/samples/map-clustering-stores/index.ts @@ -19,6 +19,7 @@ function initMap(): void { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 53.3485, lng: -6.257 }, zoom: 12, styles: [ diff --git a/samples/map-events/index.ts b/samples/map-events/index.ts index faadf843..676a28b4 100644 --- a/samples/map-events/index.ts +++ b/samples/map-events/index.ts @@ -19,6 +19,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 51.52, lng: -0.13, diff --git a/samples/map-external-layer/index.ts b/samples/map-external-layer/index.ts index 63d387f3..36e73b51 100644 --- a/samples/map-external-layer/index.ts +++ b/samples/map-external-layer/index.ts @@ -16,6 +16,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 15.64, center: centerLatLng, mapTypeControl: true, @@ -78,6 +79,7 @@ function applyStyle(name: string) { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: map.getZoom(), center: map.getCenter(), mapTypeControl: true, diff --git a/samples/map-style-lightgrey/index.ts b/samples/map-style-lightgrey/index.ts index 87d75992..ece92741 100644 --- a/samples/map-style-lightgrey/index.ts +++ b/samples/map-style-lightgrey/index.ts @@ -5,6 +5,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 12, center: position, styles: [ diff --git a/samples/map-style-night/index.ts b/samples/map-style-night/index.ts index 1578c333..9dc84b81 100644 --- a/samples/map-style-night/index.ts +++ b/samples/map-style-night/index.ts @@ -8,6 +8,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 15, center: position, styles: [ diff --git a/samples/map-style-pois/index.ts b/samples/map-style-pois/index.ts index 6119391e..8179a004 100644 --- a/samples/map-style-pois/index.ts +++ b/samples/map-style-pois/index.ts @@ -8,6 +8,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 16, center: position, styles: [ diff --git a/samples/map-style-retro/index.ts b/samples/map-style-retro/index.ts index 618ac41f..42046961 100644 --- a/samples/map-style-retro/index.ts +++ b/samples/map-style-retro/index.ts @@ -5,6 +5,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 14, center: position, styles: [ diff --git a/samples/map-type-hybrid/index.ts b/samples/map-type-hybrid/index.ts index 24715217..92c06291 100644 --- a/samples/map-type-hybrid/index.ts +++ b/samples/map-type-hybrid/index.ts @@ -10,6 +10,7 @@ function initMap(): void { // The map, initialized with hybrid satellite view map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 16, center: position, mapTypeId: woosmap.map.MapTypeId.HYBRID, diff --git a/samples/marker-click-event/index.ts b/samples/marker-click-event/index.ts index 511a268f..eddef0b5 100644 --- a/samples/marker-click-event/index.ts +++ b/samples/marker-click-event/index.ts @@ -152,6 +152,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 0, center: center, }, diff --git a/samples/marker-html-css/index.ts b/samples/marker-html-css/index.ts index 05fccf92..d5f47e24 100644 --- a/samples/marker-html-css/index.ts +++ b/samples/marker-html-css/index.ts @@ -87,6 +87,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 13, center: center, }, diff --git a/samples/marker-label/index.ts b/samples/marker-label/index.ts index 1859205b..6a60767b 100644 --- a/samples/marker-label/index.ts +++ b/samples/marker-label/index.ts @@ -10,6 +10,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 10, center: center, }, diff --git a/samples/marker-simple/index.ts b/samples/marker-simple/index.ts index bd3c4e39..ed4291a9 100644 --- a/samples/marker-simple/index.ts +++ b/samples/marker-simple/index.ts @@ -5,6 +5,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 13, center: center, }, diff --git a/samples/multisearch-map-advanced/index.ts b/samples/multisearch-map-advanced/index.ts index 5861badf..9d915db7 100644 --- a/samples/multisearch-map-advanced/index.ts +++ b/samples/multisearch-map-advanced/index.ts @@ -81,6 +81,7 @@ function initMap(): void { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 51.50940214, lng: -0.133012 }, zoom: 4, }, diff --git a/samples/multisearch-map-simple/index.ts b/samples/multisearch-map-simple/index.ts index 53b0c828..e851c873 100644 --- a/samples/multisearch-map-simple/index.ts +++ b/samples/multisearch-map-simple/index.ts @@ -60,6 +60,7 @@ function initMap(): void { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 51.50940214, lng: -0.133012 }, zoom: 4, }, diff --git a/samples/react-map-basic/index.tsx b/samples/react-map-basic/index.tsx index 735b7c15..a4002dbb 100644 --- a/samples/react-map-basic/index.tsx +++ b/samples/react-map-basic/index.tsx @@ -59,6 +59,7 @@ const WoosmapMap: React.FC = ({ center, zoom }) => { useEffect(() => { if (mapRef.current && !mapInstance) { const map = new woosmap.map.Map(mapRef.current, { + visualRefresh: true, zoom, center, }); diff --git a/samples/react-map-with-custom-overlay/index.tsx b/samples/react-map-with-custom-overlay/index.tsx index 0f13b589..311d68d1 100644 --- a/samples/react-map-with-custom-overlay/index.tsx +++ b/samples/react-map-with-custom-overlay/index.tsx @@ -61,6 +61,7 @@ const WoosmapMap: React.FC = ({ center, zoom, children }) => { useEffect(() => { if (mapRef.current && !mapInstance) { const map = new woosmap.map.Map(mapRef.current, { + visualRefresh: true, zoom, center, }); diff --git a/samples/react-map-with-localities/index.tsx b/samples/react-map-with-localities/index.tsx index cc84741e..dc750cec 100644 --- a/samples/react-map-with-localities/index.tsx +++ b/samples/react-map-with-localities/index.tsx @@ -64,6 +64,7 @@ const WoosmapMap: React.FC = ({ center, zoom, children }) => { useEffect(() => { if (mapRef.current && !mapInstance) { const map = new woosmap.map.Map(mapRef.current, { + visualRefresh: true, zoom, center, }); diff --git a/samples/render-shapes-circles/index.ts b/samples/render-shapes-circles/index.ts index 7b63aa3b..d5463d08 100644 --- a/samples/render-shapes-circles/index.ts +++ b/samples/render-shapes-circles/index.ts @@ -137,6 +137,7 @@ const data = { function initMap() { map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 40, lng: 0, diff --git a/samples/render-shapes-data-events/index.ts b/samples/render-shapes-data-events/index.ts index d94214a0..42763c16 100644 --- a/samples/render-shapes-data-events/index.ts +++ b/samples/render-shapes-data-events/index.ts @@ -39,6 +39,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 29.65, lng: -97.74 }, zoom: 6, }, diff --git a/samples/render-shapes-data/index.ts b/samples/render-shapes-data/index.ts index 05f60c3b..5ac1432f 100644 --- a/samples/render-shapes-data/index.ts +++ b/samples/render-shapes-data/index.ts @@ -202,6 +202,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 53.3430183, lng: -6.25321 }, zoom: 14, }, diff --git a/samples/render-shapes-geojson/index.ts b/samples/render-shapes-geojson/index.ts index 7b19e2d4..66765427 100644 --- a/samples/render-shapes-geojson/index.ts +++ b/samples/render-shapes-geojson/index.ts @@ -6,6 +6,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 53.51, lng: 8.15 }, zoom: 4, }, diff --git a/samples/render-shapes-polygons/index.ts b/samples/render-shapes-polygons/index.ts index 6761ca7a..14133d84 100644 --- a/samples/render-shapes-polygons/index.ts +++ b/samples/render-shapes-polygons/index.ts @@ -7,6 +7,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 29.65, lng: -97.74 }, zoom: 6, }, diff --git a/samples/render-shapes-polylines/index.ts b/samples/render-shapes-polylines/index.ts index 5995ebc4..0c02ff28 100644 --- a/samples/render-shapes-polylines/index.ts +++ b/samples/render-shapes-polylines/index.ts @@ -6,6 +6,7 @@ function initMap() { map = new window.woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 51.505, lng: -0.118 }, zoom: 15, }, diff --git a/samples/stores-list-sync-map/index.ts b/samples/stores-list-sync-map/index.ts index 89518b67..af262f7e 100644 --- a/samples/stores-list-sync-map/index.ts +++ b/samples/stores-list-sync-map/index.ts @@ -24,6 +24,7 @@ const storesStyle: woosmap.map.Style = { }; const mapOptions: woosmap.map.MapOptions = { + visualRefresh: true, zoom: 5, center: { lat: 46.5, diff --git a/samples/stores-overlay-click-event/index.ts b/samples/stores-overlay-click-event/index.ts index aee87f65..a0d824a5 100644 --- a/samples/stores-overlay-click-event/index.ts +++ b/samples/stores-overlay-click-event/index.ts @@ -29,6 +29,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 13, center: center, }, diff --git a/samples/stores-overlay-query-advanced/index.ts b/samples/stores-overlay-query-advanced/index.ts index b866dff8..5e39e0f6 100644 --- a/samples/stores-overlay-query-advanced/index.ts +++ b/samples/stores-overlay-query-advanced/index.ts @@ -86,6 +86,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 8, center: center, }, diff --git a/samples/stores-overlay-query/index.ts b/samples/stores-overlay-query/index.ts index cd5bf01d..c7a6d17c 100644 --- a/samples/stores-overlay-query/index.ts +++ b/samples/stores-overlay-query/index.ts @@ -29,6 +29,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 8, center: center, }, diff --git a/samples/stores-overlay/index.ts b/samples/stores-overlay/index.ts index 1d21e288..63b65f27 100644 --- a/samples/stores-overlay/index.ts +++ b/samples/stores-overlay/index.ts @@ -31,6 +31,7 @@ function initMap(): void { const map = new woosmap.map.Map( document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 4, center: center, }, diff --git a/samples/stores-search/index.ts b/samples/stores-search/index.ts index 9da0d077..7b3c69f3 100644 --- a/samples/stores-search/index.ts +++ b/samples/stores-search/index.ts @@ -31,6 +31,7 @@ const storesStyle: woosmap.map.Style = { }; const mapOptions: woosmap.map.MapOptions = { + visualRefresh: true, center: { lat: 51.50940214, lng: -0.133012 }, zoom: 12, styles: [ diff --git a/samples/transit-advanced/index.ts b/samples/transit-advanced/index.ts index 4a503c77..6f883db6 100644 --- a/samples/transit-advanced/index.ts +++ b/samples/transit-advanced/index.ts @@ -397,6 +397,7 @@ function initUI(): void { function initMap(): void { map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 45.482604, lng: 9.16924 }, zoom: 11, }); diff --git a/samples/transit-roadbook/index.ts b/samples/transit-roadbook/index.ts index 09bd776a..0bcf9ffb 100644 --- a/samples/transit-roadbook/index.ts +++ b/samples/transit-roadbook/index.ts @@ -525,6 +525,7 @@ function initUI(): void { function initMap(): void { map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 45.482604, lng: 9.16924 }, zoom: 11, }); diff --git a/samples/vector-map/index.ts b/samples/vector-map/index.ts index 2d95ae74..6729d965 100644 --- a/samples/vector-map/index.ts +++ b/samples/vector-map/index.ts @@ -12,6 +12,7 @@ function initMap(): void { // The map, centered at London map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, zoom: 17, center: position, }); diff --git a/samples/w3w-autocomplete/index.ts b/samples/w3w-autocomplete/index.ts index da55b5b7..17255a27 100644 --- a/samples/w3w-autocomplete/index.ts +++ b/samples/w3w-autocomplete/index.ts @@ -336,6 +336,7 @@ function displayW3wSuggestion() { function initMap() { // [START woosmap_w3w_autocomplete_initMap] map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, { + visualRefresh: true, center: { lat: 48.8534, lng: 2.3488,