diff --git a/CHANGELOG.md b/CHANGELOG.md index 91cf497f..10364b74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Heatmap and Fog of War now are moving correctly during map interactions. #1798 - Polyline crossing international date line now are rendered correctly. #1162 - Place popup tags parsing (MapLibre GL JS compatibility) +- Stats calculation should be faster now. ## Changed diff --git a/app/javascript/maps_v2/components/popup_factory.js b/app/javascript/maps_v2/components/popup_factory.js index a29ad057..4a6e9a47 100644 --- a/app/javascript/maps_v2/components/popup_factory.js +++ b/app/javascript/maps_v2/components/popup_factory.js @@ -1,4 +1,5 @@ import { formatTimestamp } from '../utils/geojson_transformers' +import { getCurrentTheme, getThemeColors } from '../utils/popup_theme' /** * Factory for creating map popups @@ -12,38 +13,42 @@ export class PopupFactory { static createPointPopup(properties) { const { id, timestamp, altitude, battery, accuracy, velocity } = properties + // Get theme colors + const theme = getCurrentTheme() + const colors = getThemeColors(theme) + return ` -