PROBLEM
The HTML Viewer Thematic Map sample that is installed with ArcIMS works fine when configured with sample data and services. However, when using the sample with any other service, the layer classification doesn't work for point or line layers.
Note:
See page # 33 of "Customizing HTML Viewer" document available at ArcIMS Installation Directory/Documentation folder for more descriptions on HTML Viewer samples.
In the sample code, the classification layer type is hardcoded as polygon and is not updated for the type of active layer. If the classification layer is other than polygon, ArcIMS incorrectly attempts to render the layer with a polygon symbol.
Code:
function setRenderString() {
Code:
function setRenderString() {
/*
* next line is added to make classification work with point and line layers
*/
ClassRenderShape = LayerType[ActiveLayerIndex];
var rendString = '<VALUEMAPRENDERER lookupfield="' + ClassRenderLayerField + '">\n';
Article ID:000006460
Get help from ArcGIS experts
Download the Esri Support App