@trackunit/react-map 0.2.31 → 0.2.32
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/migrations/entry.js.map +1 -0
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -3019,7 +3019,7 @@ const useDefaultControls = (api, options) => {
|
|
|
3019
3019
|
},
|
|
3020
3020
|
"data-testid": "map-my-location-button",
|
|
3021
3021
|
}, [api.actions, getPosition, options?.navigation?.myLocation?.enabled, t]);
|
|
3022
|
-
const navigationControls = react.useMemo(() => defineControlStack([zoomControl, fullscreenControl
|
|
3022
|
+
const navigationControls = react.useMemo(() => defineControlStack([myLocationControl, zoomControl, fullscreenControl]), [fullscreenControl, myLocationControl, zoomControl]);
|
|
3023
3023
|
const mapAppearanceControls = useMapAppearanceControls({ api });
|
|
3024
3024
|
const mapStyleControl = react.useMemo(() => options?.settings?.mapStyle?.enabled === false ? undefined : mapAppearanceControls[0], [mapAppearanceControls, options?.settings?.mapStyle?.enabled]);
|
|
3025
3025
|
const settingsControls = react.useMemo(() => defineControlStack([mapStyleControl]), [mapStyleControl]);
|
package/index.esm.js
CHANGED
|
@@ -3018,7 +3018,7 @@ const useDefaultControls = (api, options) => {
|
|
|
3018
3018
|
},
|
|
3019
3019
|
"data-testid": "map-my-location-button",
|
|
3020
3020
|
}, [api.actions, getPosition, options?.navigation?.myLocation?.enabled, t]);
|
|
3021
|
-
const navigationControls = useMemo(() => defineControlStack([zoomControl, fullscreenControl
|
|
3021
|
+
const navigationControls = useMemo(() => defineControlStack([myLocationControl, zoomControl, fullscreenControl]), [fullscreenControl, myLocationControl, zoomControl]);
|
|
3022
3022
|
const mapAppearanceControls = useMapAppearanceControls({ api });
|
|
3023
3023
|
const mapStyleControl = useMemo(() => options?.settings?.mapStyle?.enabled === false ? undefined : mapAppearanceControls[0], [mapAppearanceControls, options?.settings?.mapStyle?.enabled]);
|
|
3024
3024
|
const settingsControls = useMemo(() => defineControlStack([mapStyleControl]), [mapStyleControl]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/react/map/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
|