@geops/rvf-mobility-web-component 0.1.31 → 0.1.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@geops/rvf-mobility-web-component",
3
3
  "license": "UNLICENSED",
4
4
  "description": "Web components for rvf in the domains of mobility and logistics.",
5
- "version": "0.1.31",
5
+ "version": "0.1.32",
6
6
  "homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
7
7
  "type": "module",
8
8
  "main": "index.js",
package/src/Map/Map.tsx CHANGED
@@ -18,6 +18,9 @@ function Map({ children, ...props }: RealtimeMapProps) {
18
18
 
19
19
  const view = useMemo(() => {
20
20
  if (!maxextent) {
21
+ if (maxextent === "") {
22
+ return new View();
23
+ }
21
24
  return;
22
25
  }
23
26
  const bbox = maxextent.split(",").map((c) => {
@@ -74,6 +77,7 @@ function Map({ children, ...props }: RealtimeMapProps) {
74
77
  const bbox = extent.split(",").map((c) => {
75
78
  return parseFloat(c);
76
79
  });
80
+
77
81
  if (bbox) {
78
82
  map.getView().fit(bbox);
79
83
  }
@@ -518,7 +518,7 @@ function RvfMobilityMap({
518
518
  <MapContext.Provider value={mapContextValue}>
519
519
  <RvfContext.Provider value={rvfContextValue}>
520
520
  <div
521
- className="relative size-full overflow-hidden rounded-[16px] border font-sans @container/main"
521
+ className="relative size-full overflow-hidden font-sans @container/main"
522
522
  ref={eventNodeRef}
523
523
  style={styleProps}
524
524
  >