timeline-map
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "timeline-map", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "TimeLine Map Component from MapsForAll", | ||
@@ -5,0 +5,0 @@ "main": "dist/TimeLineMap.js", |
@@ -66,8 +66,17 @@ import {dateFromString} from '../date/conversion'; | ||
let displayLocation = ''; | ||
if (marker.location.country.length > 0) { | ||
displayLocation = marker.location.country; | ||
} | ||
if (marker.location.state.length > 0) { | ||
displayLocation = `${marker.location.city}, ${marker.location.state}, ${marker.location.country}`; | ||
} else { | ||
displayLocation = `${marker.location.city}, ${marker.location.country}`; | ||
displayLocation = | ||
displayLocation.length > 0 ? `${marker.location.state}, ${displayLocation}` : marker.location.state; | ||
} | ||
if (marker.location.city.length > 0) { | ||
displayLocation = | ||
displayLocation.length > 0 ? `${marker.location.city}, ${displayLocation}` : marker.location.city; | ||
} | ||
return displayLocation; | ||
@@ -74,0 +83,0 @@ } |
Sorry, the diff of this file is too big to display
174721
1738