# Location Labels Missing After Upgrading to MappedinSDK v6

**URL:** https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488
**Category:** Mappedin SDK for React Native
**Tags:** react-native
**Created:** [November 26, 2025, 3:11pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488 "2025-11-26T15:11:03Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![shlomomdahan](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/shlomomdahan/32/314_2.png) [@shlomomdahan](https://community.mappedin.com/u/shlomomdahan)
#### Post date: [November 26, 2025, 3:11pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/1 "2025-11-26T15:11:03Z")

</div>

After upgrading from Mappedin React Native SDK v5 to v6 (6.5.0), we’ve noticed that many location labels are no longer appearing on the map.

In v5, we used the FloatingLabels API to display all location labels:

```auto
await mapView.current?.FloatingLabels.labelAllLocations();

```

This worked reliably and showed labels for all locations that had been configured in our map data. Following the migration guide, we updated to use the new Labels API:

```auto
mapView.Labels. __EXPERIMENTAL__ all();

```

After this migration, many location labels are now missing from the map. Only a subset of locations display their labels, while others that were previously visible in v5 no longer appear.

1. Is there a known difference in behavior between FloatingLabels.labelAllLocations() in v5 and Labels.\_\_EXPERIMENTAL\_\_all() in v6?
2. Are there specific criteria (priority, zoom level, collision detection) that determine which labels are displayed with the new API?
3. Is there a recommended stable approach for displaying all location labels in v6, or should we manually iterate through spaces and add labels using Labels.add()?

Thanks

---

<div class="post-metadata">

### Author: ![msohm](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/msohm/32/6_2.png) [@msohm](https://community.mappedin.com/u/msohm)
#### Post date: [November 26, 2025, 3:24pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/2 "2025-11-26T15:24:22Z")

</div>

Can you give examples of labels that are missing?

The `Labels.all()` method is still incomplete and being worked on, which is why it is prefixed with ` __EXPERIMENTAL__ `. Let me know what you aren’t seeing and I can check on the status of those types of labels.

Also note that labels will show and hide themselves depending on the zoom level and how much space is available (i.e. overlapping labels are hidden at higher zoom levels).

As you mention, an alternative approach is to loop through all locations and/or spaces and add labels using Labels.all() or by using the [Label](https://docs.mappedin.com/react-native-sdk-api/v6/latest/functions/_mappedin_react-native-sdk.Label.html) component.

---

<div class="post-metadata">

### Author: ![shlomomdahan](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/shlomomdahan/32/314_2.png) [@shlomomdahan](https://community.mappedin.com/u/shlomomdahan)
#### Post date: [November 26, 2025, 3:41pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/3 "2025-11-26T15:41:48Z")

</div>

I just noticed something that might explain what’s going on. The labels _do_ show up when they’re on the edge of the camera view (like Ulta Beauty - img below), but as soon as you pan the camera toward them or over them, they disappear. So this might be part of the issue we’re seeing.

 ![Screenshot 2025-11-26 at 10.39.49 AM](https://canada1.discourse-cdn.com/flex004/uploads/mappedin/original/1X/900ab10c026f98daf7bef63eb605d6854242d75d.jpeg)

 ![Screenshot 2025-11-26 at 10.39.42 AM](https://canada1.discourse-cdn.com/flex004/uploads/mappedin/original/1X/6f96f920e0b6103b424c13eae8e2e33dc8489393.jpeg)

---

<div class="post-metadata">

### Author: ![msohm](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/msohm/32/6_2.png) [@msohm](https://community.mappedin.com/u/msohm)
#### Post date: [November 26, 2025, 4:27pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/4 "2025-11-26T16:27:15Z")

</div>

Do they appear when you zoom into that area? Are there other labels in that area too? Please post a screen shot of ULTA BEAUTY zoomed in. Thanks!

---

<div class="post-metadata">

### Author: ![shlomomdahan](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/shlomomdahan/32/314_2.png) [@shlomomdahan](https://community.mappedin.com/u/shlomomdahan)
#### Post date: [November 28, 2025, 4:36pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/5 "2025-11-28T16:36:53Z")

</div>

I was able to fix this with a workaround. I think the issue was that the labels were being added irrespective to selected floor using the experimental add all.

However, it seems like a significant step backwards to have to do something like the below to get this working correctly.

```auto

const useFloorLabels = () => {
  const { mapView, mapData } = useMap();

  const showLabelsForCurrentFloor = useCallback(async () => {
    const currentFloor = mapView.currentFloor;
    mapView.Labels?.removeAll?.();

    const allEnterpriseLocations = mapData.getByType?.('enterprise-location') || [];

    for (const enterpriseLocation of allEnterpriseLocations) {
      const floorSpace = enterpriseLocation.spaces
        .map(space => typeof space === 'string' 
          ? mapData.getById?.('space', space) 
          : space)
        .find(space => {
          const spaceFloor = space?.map || space?.floor;
          return spaceFloor?.id === currentFloor.id;
        });

      if (floorSpace && enterpriseLocation.name) {
        mapView.Labels?.add?.(floorSpace, enterpriseLocation.name, {
          interactive: true
        });
      }
    }
  }, [mapView, mapData]);

  return { showLabelsForCurrentFloor };
};

```

whereas in v5 it was simply

`await mapView.current?.FloatingLabels.labelAllLocations();`

Similarly, when trying to handle map clicks and extract location data from the click we previously could simply do:

`locationName = polygons[0].locations[0].name;`  
`mappedinLocationId = polygons[0].locations[0].id;`

to access location info since the click event contained those polygons/locations.

Now, we need to loop through all enterprise locations and see if the space id included in the new click event payload is within the spaces array of a certain enterprise location. It’s very verbose and doesn’t seem to work well at all using this approach as some clicks fail to link up to the correct location.

```auto
useMapViewEvent(‘click’, async (payload) => {
const position = {latitude: payload.coordinate.latitude,
                  longitude: payload.coordinate.longitude
                  };

let location = null;
if (payload.spaces?.length > 0) {
   const clickedSpace = payload.spaces[0];
   const allEnterpriseLocations = mapData.getByType(‘enterprise-location’);

// Loop through ALL locations to find which contains this space
for (const enterpriseLocation of allEnterpriseLocations) {
  const hasSpace = enterpriseLocation.spaces.some(space =>
    (typeof space === 'string' ? space : space.id) === clickedSpace.id
  );
  if (hasSpace) {
    location = enterpriseLocation;
    break;
  }
}

```

Are there plans to streamline these APIs or return to patterns from v5?

Thanks

---

<div class="post-metadata">

### Author: ![msohm](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/msohm/32/6_2.png) [@msohm](https://community.mappedin.com/u/msohm)
#### Post date: [November 28, 2025, 6:24pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/6 "2025-11-28T18:24:25Z")

</div>

Using `mapView. __EXPERIMENTAL__ auto();` should only show labels for the current floor, were you seeing otherwise? How are you changing floors?

Here are a couple of examples that handle building changes and use `mapView. __EXPERIMENTAL__ auto();`

- [Building & Floor Selection](https://developer.mappedin.com/web-sdk/level-selection#full-sample)
- [Dynamic Focus](https://developer.mappedin.com/web-sdk/dynamic-focus#interactive-example)

Please compare what you are doing with these and let me know what scenario reproduces it if you can.

That is good feedback regarding the lack of a`Space.enterpriseLocations` when we do have a `Space.locationProfiles` class for non enterprise locations. I will take this back to our SDK team, adding that would make this much easier to use. Thanks for the feedback!

---

<div class="post-metadata">

### Author: ![shlomomdahan](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/shlomomdahan/32/314_2.png) [@shlomomdahan](https://community.mappedin.com/u/shlomomdahan)
#### Post date: [December 4, 2025, 1:31am UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/7 "2025-12-04T01:31:28Z")

</div>

mapView.\_\_EXPERIMENTAL\_\_auto(); worked correctly.

I was previous using mapView.Labels.\_\_EXPERIMENTAL\_\_all(); which didn’t work correctly.

Thank you

---

<div class="post-metadata">

### Author: ![shlomomdahan](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/shlomomdahan/32/314_2.png) [@shlomomdahan](https://community.mappedin.com/u/shlomomdahan)
#### Post date: [December 5, 2025, 1:36pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/8 "2025-12-05T13:36:49Z")

</div>

We also noticed that a few labels on the map show up in purple and appear larger than the others. Is there any logic behind which locations get styled that way? And can that be turned off?

Thanks

 ![IMG_8544](https://canada1.discourse-cdn.com/flex004/uploads/mappedin/original/1X/b5ab390230f1c142480cdb41a63fe0d84510f120.jpeg)

---

<div class="post-metadata">

### Author: ![msohm](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/msohm/32/6_2.png) [@msohm](https://community.mappedin.com/u/msohm)
#### Post date: [December 5, 2025, 2:10pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/9 "2025-12-05T14:10:25Z")

</div>

The different label sizes are from Mappedin JS trying to fit labels on the screen without overlapping. When using `MapView.__EXPERIMENTAL_auto()` there isn’t a way to customize the look or priority of a label.

However, this can be done when adding labels to the map individually using `Labels.add()`. The add method lets you set a priority (the weight that determines which are shown vs hidden when overlapping), zoom level they expand and contract at and their full look and feel. [TAddLabelOptions](https://docs.mappedin.com/web/v6/latest/types/TAddLabelOptions.html) has the general options and [LabelAppearance](https://docs.mappedin.com/web/v6/latest/types/LabelAppearance.html) the options for look and feel.

You can find out more in our [Labels Guide](https://developer.mappedin.com/web-sdk/labels).

---

<div class="post-metadata">

### Author: ![shlomomdahan](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/shlomomdahan/32/314_2.png) [@shlomomdahan](https://community.mappedin.com/u/shlomomdahan)
#### Post date: [December 5, 2025, 6:18pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/10 "2025-12-05T18:18:34Z")

</div>

Is that also the case for those much larger ones in purple?

---

<div class="post-metadata">

### Author: ![msohm](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/msohm/32/6_2.png) [@msohm](https://community.mappedin.com/u/msohm)
#### Post date: [December 5, 2025, 7:13pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/11 "2025-12-05T19:13:35Z")

</div>

Are you adding Labels or were these all added using the auto method?

Without an icon Labels are default size with 8px padding, if the icon is an SVG (all the ones used by auto) it’s 30px with 10px padding, if it’s an uploaded image its 48px with 2px padding.

---

<div class="post-metadata">

### Author: ![msohm](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/msohm/32/6_2.png) [@msohm](https://community.mappedin.com/u/msohm)
#### Post date: [December 11, 2025, 5:58pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/12 "2025-12-11T17:58:57Z")

</div>

Following up on the original request, there are new properties to easily get an `EnterpriseLocation` from a `Space` or `MapObject` in Mappedin JS 6.9.0. You can now use `Space.enterpriseLocations` or `MapObject.enterpriseLocations`.

---

<div class="post-metadata">

### Author: ![shlomomdahan](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/shlomomdahan/32/314_2.png) [@shlomomdahan](https://community.mappedin.com/u/shlomomdahan)
#### Post date: [December 11, 2025, 6:36pm UTC](https://community.mappedin.com/t/location-labels-missing-after-upgrading-to-mappedinsdk-v6/488/13 "2025-12-11T18:36:10Z")

</div>

Nice! Thanks for the update.
