How to refresh a layer's data without losing its styling
Replace a dataset's data from a new file or Dropbox sync. Every map that uses it keeps its layer order, styles, popups, and labels.
When the source data changes, you do not need to add a layer or restyle the map. MangoMap replaces the data in the existing dataset, and every map that uses it keeps its layer order, styles, popups, attribute formatting, labels, and access settings. The dataset’s URL doesn’t change either, so any embedded maps, share links, and bookmarks keep working.
Pick a path based on how often you’ll refresh
| One-off / ad-hoc | Ongoing / scheduled | |
|---|---|---|
| Where | Configuration → Update from file |
Configuration → Sync |
| You upload | The new file each time | Once — MangoMap pulls from Dropbox going forward |
| Frequency | When you choose to | Within about 10 minutes of a change in Dropbox |
| How-to | Update a dataset from a file | Set up Dropbox sync |
Both paths replace the dataset’s records in place. The maps keep their styling, popups, formatting, and access. Only the rows or features change.
What’s preserved
A refresh replaces the rows and keeps everything built on top of them, so in-app edits are the one thing you can lose:
Across both paths, refreshing a dataset preserves:
- Layer styles on every map using the dataset (uniform colour, category, quantity, heatmap, fill patterns, line patterns, custom icons).
- Popup templates (default, custom, conditional content, calculators, charts, iframes, embedded media).
- Attribute formatting (renames, hides, number / date / currency / measurement formatting).
- Labels, where applicable.
- Per-layer order, grouping, visibility, and legend settings on every map.
- Dataset access settings —
Public accessand each group’sViewandEditaccess. - The dataset’s URL.
- The dataset’s name and description.
What the new file must keep
Layer styles and popups are keyed by attribute name and built for one geometry type. To protect them, MangoMap refuses a refreshed file that:
- Drops or renames a column the dataset already has. The
Processing faileddialog lists the missing columns:Missing required columns: …. Column names match without regard to capital letters. - Has a different geometry type — for example, lines in a polygon dataset. Single and multi-part shapes count as the same type.
When a file is refused, the dataset keeps its previous content.
What can still change
- New columns. On a layer with a default popup, MangoMap adds each new column to the popup, visible, at the end of the
Formattab list. Custom popups, styles, and labels don’t use a new column until you add it. - Column types. If a column’s values change type (for example, number to text), quantity-driven styling on that column can stop classifying. The style stays configured; the classification doesn’t apply. Class breaks are not recalculated on a refresh either, so check them if the range of values changes.
When you change column types, plan to revisit any map that uses the dataset. See How data updates work in MangoMap for the full propagation rules.
What is not preserved
These are NOT preserved by a data refresh:
- Per-feature edits made through the popup’s three-dot menu (
Edit attributes,Edit geometry). A refresh overwrites the dataset’s rows with the file you upload — any in-app edits are lost unless they’re already in the file you’re uploading. See How feature editing works in MangoMap. - New features added in-app via
Add feature. Same reason — the upload replaces the row set.
If you want to preserve in-app feature edits, treat the in-app data as authoritative and export from MangoMap, not the other way round.
Related
- How to update a dataset from a file — the one-off path.
- How to set up Dropbox sync — the ongoing path.
- How data updates work in MangoMap — the full propagation rules.
- How feature editing works in MangoMap — what survives and what doesn’t when in-app edits meet a file refresh.