diff --git a/Source/DataSources/GeoJsonDataSource.js b/Source/DataSources/GeoJsonDataSource.js index 59ca55b4beb6..09ec61b26a62 100644 --- a/Source/DataSources/GeoJsonDataSource.js +++ b/Source/DataSources/GeoJsonDataSource.js @@ -106,8 +106,8 @@ define([ var nameProperty; for (key in properties) { if (properties.hasOwnProperty(key) && properties[key]) { - var upperKey = key.toLowerCase(); - if (upperKey === 'name' || upperKey === 'title') { + var lowerKey = key.toLowerCase(); + if (lowerKey === 'name' || lowerKey === 'title') { nameProperty = key; entity.name = properties[key]; break; @@ -282,8 +282,6 @@ define([ * * @demo {@link http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=GeoJSON%20and%20TopoJSON.html|Cesium Sandcastle GeoJSON and TopoJSON Demo} * - * @demo {@link http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=GeoJSON%20and%20TopoJSON.html|Cesium Sandcastle GeoJSON and TopoJSON Demo} - * * @example * var viewer = new Cesium.Viewer('cesiumContainer'); * var dataSource = new Cesium.GeoJsonDataSource();