Map Chart

Hi,

I'm currently working on a "map-chart page" in NUX, and I'm experiencing issues with the scaling. My map is dimensioned with "world" and I'm using a hierarchy filter. So, when I for example pick the Nordics in the context selector this is what I see in the map card, but the map is not adjusting to the size of the card. So the nordics just appears as small "dot" in the card. However, if go into edit mode the size of the map is scaling as expected, and when I exit edit mode it looks okay, but whenever I change region I'm facing the same issue.

I solved it temporarily by using a boolean filter instead of the context selector and it works fine. But, it would be way more smooth the be able to use the context selectors. 

In addition, as I've seen alot people commenting, it would be great to get the opportunity to add cities, more regions etc. I think this could be really powerful. 

Cheers,
Stig



Answers

  • emma698fox
    edited October 24

    Hi Stig,

    It sounds like you're facing a common issue with map scaling in NUX, especially when using the context selector for hierarchical filtering. Here are a few suggestions to help you troubleshoot and improve your map chart setup:

    1. Responsive Design: Check if there are any settings for responsive design or scaling in your map chart properties. Sometimes, enabling responsive settings can help adjust the map size based on the card dimensions dynamically.
    2. Refresh on Context Change: Ensure that there’s a refresh or re-render function tied to the context selector changes. Sometimes, manually triggering a redraw or refresh can resolve display issues.
    3. Map Component Properties: Look into the map component's properties for any options that might help with scaling or fit-to-region functionalities. There may be specific settings that dictate how the map should behave when regions are selected.
    4. Z-Index or Layering Issues: If there are any layers or overlapping components in your card, check the z-index or layering. Sometimes other components can obscure the map rendering properly.

    Best,
    Emma Fox
    ADP Vantage HCM