Hi David,Thank you for the information and the URL of the service that you were using. We did have a bug that prevented a layer that didn't have a symbol renderer from appearing in the basemap switcher box. Without the checkbox in the switcher, you can't change the visibility from the user interface.This has been fixed in the latest version of the Tax Parcel Viewer in Esri's github site: a default symbol is provided for the layer.Thanks,Mike
function CreateDynamicServiceLayer(layerURL, layerIndex, layerId, isVisible, displayName) { var imageParams = new esri.layers.ImageParameters(); var lastindex = layerURL.lastIndexOf('/'); imageParams.layerIds = [layerIndex]; imageParams.layerOption = esri.layers.ImageParameters.LAYER_OPTION_SHOW; imageParams.format = "jpeg"; var dynamicLayer = layerURL.substring(0, lastindex); var dynamicMapService = new esri.layers.ArcGISDynamicMapServiceLayer(dynamicLayer, { id: layerId, imageParameters: imageParams, visible: isVisible }); var initiallyVisible = isVisible;
dijit.byId("divProperty").select();
dijit.byId("divProperty").selected = true;
Mike,i have added 3 operational layers to the TPV (Residential Sales, Commercial Sales and Land Sales). Only 2 of the operational layers show up in the legend. can you duplicate this error with the 10.2 version from GITHUB? I can add a 4th operational layer and 3 of the 4 layers will show up in the legend. Also, if I only have 2 operational layers in my config.js file both layers need to bechecked in order to perform the identify function.I have attached the config.js file that I am using for your review. Is this a bug or am I missing something?Thanks,David
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.