-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeoJSON cleanup #1952
GeoJSON cleanup #1952
Conversation
1. Streamline Sandcastle example 2. Expose basic graphics objects instead of entire entities for default options 3. Add CZML Sandcastle example to the `DataSources` label.
Mind if I tweak the new table CSS? |
I was counting on it. |
Done |
Feel free to review and merge it as well @emackey ;) |
This needs your new Sandcastle.reset logic. |
Nevermind, that's not in master yet. I'll merge this first and then you can fix it in #1956. |
var key; | ||
var nameProperty; | ||
for (key in properties) { | ||
if (properties.hasOwnProperty(key) && properties[key]) { | ||
var upperKey = key.toUpperCase(); | ||
if (upperKey === 'NAME' || upperKey === 'TITLE') { | ||
var upperKey = key.toLowerCase(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pointless nitpicking time. Should this be called lowerKey
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not pointless at all, thanks. I made this change because as a rule we always need to go to lower case because some Unicode characters upper case to the same thing.
Just 2 comments in the diffs. |
ready |
GeoJsonDataSource
Sandcastle example to show how to apply custom graphics. This will serve as a reference for a newDataSource
tutorial I'll write sometime soon.defaultPoint
,defaultLine
, anddefaultPolygon
fromGeoJsonDataSource
because they just aren't very useful.cesium-infoBox-defaultTable
that can be used by data sources to receive default infobox styling. MadeGeoJsonDataSource
use this class.