improve project graph

This commit is contained in:
Lachlan Kermode
2020-03-27 17:44:52 +01:00
parent 85476ee6fb
commit 421af5e60c
7 changed files with 99 additions and 59 deletions

View File

@@ -94,6 +94,7 @@ function MapEvents ({ getCategoryColor, categories, projectPoint, styleLocation,
longitude: '32.2'
}
*/
if (!location.latitude || !location.longitude) return null
const { x, y } = projectPoint([location.latitude, location.longitude])
// in narrative mode, only render events in narrative