I just updated to the newest version of Cesium and now whenever I click on the map it brings up a window that says "Loading feature information..." and then loads this:
NAIP2014
OBJECTID 3291
Shape Polygon
DATE (YYYYMMDD) 20141016
RESOLUTION (M) 1
ACCURACY (M) 6
DESCRIPTION NAIP
SOURCE_INFO NAIP2014
SOURCE USDA FSA
SRC_DATE2 10/16/2014
What is this? why did is suddenly starting doing this? How do you stop it from doing this?
Fixed it by changing
viewer = new Cesium.Viewer('map', {
baseLayerPicker: false
});
to...
viewer = new Cesium.Viewer('map', {
baseLayerPicker: true
});
But then that changes the base I use, any idea of what is causing this?
Cesium lets the user pick features from rasterized WebMapServiceImageryProvider and ArcGisMapServerImageryProvider layers by invoking GetFeatureInfo or /identify (respectively) on the server. If you don’t want your imagery provider to be pickable, pass the “enablePickFeatures: false” option to the constructor of the imagery provider.
Really appreciate it! Worked like a charm.
Just in case anyone sees this in the future, here is the exact change I made:
viewer = new Cesium.Viewer('map', {
animation: false,
fullscreenButton: false,
timeline: false,
geocoder: false,
homeButton: false,
imageryProvider: new Cesium.ArcGisMapServerImageryProvider({
url: '//server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',
enablePickFeatures: false //<-- here, change to false.
});
}),
terrainProvider: new Cesium.CesiumTerrainProvider({
url: '//cesiumjs.org/stk-terrain/tilesets/world/tiles'
}),
baseLayerPicker: false //<-- here, change to true.
});