Dimensi2Dinamik's avatar
Dimensi2Dinamik
Cloud Apps
11-04-2024
Status:
New Idea

Automatically Zoom Area Map to Specific Countries (Non-U.S.) on Load

Currently, the Area Map widget only offers two map types: World and USA. This becomes problematic if your data is limited to a specific country (Indonesia, in my case), and you only want to display that country on the map.

I've managed to filter for Indonesia using the following code:

...res.geoJson.features.filter(feature => feature.properties.name === 'Indonesia'),

However, this approach leads to another issue: when the dashboard loads, the Indonesian area is too small, and I have to manually zoom in. I would greatly appreciate any code or method to set the widget to automatically zoom into the Indonesian region when displayed on the dashboard.

Comments have been turned off for this idea