From c3d4b2ec382c113dbbf4fdab2e2f2b22e875e4c3 Mon Sep 17 00:00:00 2001 From: Matthew Amato Date: Thu, 24 Jul 2014 19:51:32 -0400 Subject: [PATCH] Changes after review. --- Source/DataSources/GeoJsonDataSource.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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();