|
POST
|
Hi all Where can I find the source code for the TOC tab for this sample: http://www.mohadiax.de/gis/JS_TreeClient_ArcGIS/ thanks
... View more
01-03-2013
09:59 AM
|
0
|
6
|
3222
|
|
POST
|
Hi all how can I remove these messages: Validation (XHTML 1.0 Trnasitional) Attribute 'dojo...' is not a valid element 'div' thanks
... View more
01-03-2013
05:38 AM
|
0
|
3
|
1665
|
|
POST
|
Hi all I am working in a ArcGIs Javascript application using Vb.Net/Asp.Net. Is there any tool that will indent the whole code in a page. thanks
... View more
01-03-2013
05:31 AM
|
0
|
1
|
943
|
|
POST
|
Hi all In Dojo how do you use to replace the old Web ADF FloatingPanel control? thanks
... View more
01-02-2013
02:31 PM
|
0
|
1
|
1131
|
|
POST
|
Is there any sample with source code similar to this toolbar: https://fortress.wa.gov/ecy/waterresources/map/WaterResourcesExplorer.aspx
... View more
12-21-2012
07:36 AM
|
0
|
0
|
872
|
|
POST
|
Hi Rene, You are totally right!!! After upgrading to the last Service Pack 5 the legend works!!! Gracias Rene!!! Saludos Jose
... View more
12-21-2012
06:54 AM
|
0
|
0
|
1104
|
|
POST
|
Hi all Is there any Toolbar Navigation sample that looks like the one we had in the Web ADF toolbar control ? http://help.arcgis.com/en/sdk/10.0/serveradf_net/conceptualhelp/index.html#/Toolbar_control/000200000109000000/ thanks
... View more
12-19-2012
01:55 PM
|
0
|
2
|
1088
|
|
POST
|
Hi Jake, I do have this variable declared. This same code shows the legend when I use the default Esri map service but does not work when I point to my local map service. Shows legend: var dynamicUrl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety Does not show legend: var dynamicUrl = "http://<localserver>/ArcGIS/rest/services/OneLayer/MapServer";
... View more
12-17-2012
04:38 PM
|
0
|
0
|
1104
|
|
POST
|
Hi all, I am trying to display the legend for a local map service created in my workstation with ArcGIS Server 10. The legend shows using Esri service var dynamicUrl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyHazardsandRisks/MapServer"; But it does not show with any of my local services: var dynamicUrl = "http://<myserver>/ArcGIS/rest/services/OneLayer/MapServer"; var dynamicUrl = "http://<myserver>/ArcGIS/rest/services/MapDefault/MapServer"; Is there anything I need to check to see my local ArcGIS Server map services. I am using this template sample http://help.arcgis.com/en/webapi/javascript/arcgis/samples/layout_MapContainerSplitLeft/index.html Thanks
... View more
12-17-2012
06:12 AM
|
0
|
1
|
862
|
|
POST
|
I removed the line and it does the same thing. It has to be related to the local map
dojo.connect(map, 'onLoad', function (map) {
//resize the map when the browser resizes
dojo.connect(dijit.byId('map'), 'resize', map, map.resize);
});
var basemapUrl = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer";
//var dynamicUrl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyHazardsandRisks/MapServer";
var referenceUrl = "http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer";
var dynamicUrl = "http://<localserver>/ArcGIS/rest/services/OneLayer/MapServer";
var basemap = new esri.layers.ArcGISTiledMapServiceLayer(basemapUrl);
var dynamicLayer = new esri.layers.ArcGISDynamicMapServiceLayer(dynamicUrl, { opacity: 0.45 });
var referenceLayer = new esri.layers.ArcGISTiledMapServiceLayer(referenceUrl);
legendLayers.push({ layer: dynamicLayer, title: "Dolfin" });
dojo.connect(map, 'onLayersAddResult', function (results) {
//add the legend
var legend = new esri.dijit.Legend({
map: map,
layerInfos: legendLayers,
arrangement: esri.dijit.Legend.ALIGN_RIGHT
}, "legendDiv");
legend.startup();
});
map.addLayer(basemap);
map.addLayers([dynamicLayer, referenceLayer]);
dojo.connect(map, 'onLayersAddResult', function (results) {
//add check boxes
dojo.forEach(legendLayers, function (layer) {
var layerName = layer.title;
var checkBox = new dijit.form.CheckBox({
name: "checkBox" + layer.layer.id,
value: layer.layer.id,
checked: layer.layer.visible,
onChange: function (evt) {
var clayer = map.getLayer(this.value);
clayer.setVisibility(!clayer.visible);
this.checked = clayer.visible;
}
});
//add the check box and label to the toc
dojo.place(checkBox.domNode, dojo.byId("toggle"), "after");
var checkLabel = dojo.create('label', { 'for': checkBox.name, innerHTML: layerName }, checkBox.domNode, "after");
dojo.place("<br />", checkLabel, "after");
});
});
}
//show map on load
dojo.addOnLoad(init);
... View more
12-14-2012
11:02 AM
|
0
|
0
|
1104
|
|
POST
|
thanks with map.addLayers([dynamicLayer]); it worked
... View more
12-14-2012
03:44 AM
|
0
|
0
|
700
|
|
POST
|
Hi all I just started downloading this sample "Map container split left" that has a tab with a Legend http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm and replaced the dynamicUrl map service with my service: var dynamicUrl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyHazardsandRisks/MapServer"; var referenceUrl = "http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer"; dynamicUrl = "http://<myserver>/ArcGIS/rest/services/OneLayer/MapServer"; When I run it I get instead of the Legend the following error message: "No Legend" The map has a legend I just checked running it in my browser http://<myserver>/ArcGIS/rest/services/OneLayer/MapServer/legend This is the code I am running from the sample: dynamicUrl = "http://<myserver>/ArcGIS/rest/services/WASDDefault/MapServer";
var basemap = new esri.layers.ArcGISTiledMapServiceLayer(basemapUrl);
var dynamicLayer = new esri.layers.ArcGISDynamicMapServiceLayer(dynamicUrl,{opacity:0.45});
var referenceLayer = new esri.layers.ArcGISTiledMapServiceLayer(referenceUrl);
dojo.connect(map,'onLayersAddResult',function(results){
//add the legend
var legend = new esri.dijit.Legend({
map:map,
layerInfos:[{layer:dynamicLayer,title:""}],
arrangement:esri.dijit.Legend.ALIGN_RIGHT
},"legendDiv");
legend.startup();
});
map.addLayer(basemap);
map.addLayers([dynamicLayer,referenceLayer]);
}
... View more
12-14-2012
03:29 AM
|
0
|
6
|
3206
|
|
POST
|
Hi all this is one of my first programs where I am trying to display the legend on a tab what is missing to show the legend. thanks
var dynamicUrl = "http://<server>j/ArcGIS/rest/services/OneLayer/MapServer";
var dynamicLayer = new esri.layers.ArcGISDynamicMapServiceLayer(dynamicUrl );
dojo.connect(map,'onLayersAddResult',function(results){
//add the legend
var legend = new esri.dijit.Legend({
map: map,
layerInfos: [{ layer: dynamicLayer, title: ""}],
arrangement: esri.dijit.Legend.ALIGN_RIGHT
}, "legendDiv");
legend.startup();
});
map.addLayer(dynamicLayer);
}
//show map on load
dojo.addOnLoad(init);
</script>
</head>
<body class="soria">
<form id="form1" runat="server">
<div id="mainWindow" dojotype="dijit.layout.BorderContainer" design="headline"
gutters="false" style="width:100%; height:100%;">
<div id="header" dojotype="dijit.layout.ContentPane" region="top">
This is the header section
<div id="subheader">subheader</div>
</div>
<div dojotype="dijit.layout.ContentPane" id="leftPane" region="right">
<div dojotype="dijit.layout.TabContainer" >
<div id="layersTab" dojotype="dijit.layout.ContentPane" title="Layers" selected="true" style="display: none; margin-bottom: 5px;">
<br />
<div id="layersToc">
</div>
<br />
</div>
<div dojotype="dijit.layout.ContentPane" title = "Legend" >
<div id="legendDiv"></div>
</div>
</div>
</div>
<div id="map" dojotype="dijit.layout.ContentPane" region="center">
</div>
<div id="footer" dojotype="dijit.layout.ContentPane" region="bottom" >
this is the footer section
</div>
</div>
</form>
</body>
</html>
... View more
12-13-2012
10:31 AM
|
0
|
2
|
1070
|
|
POST
|
Hi all I am looking for following source code samples: how to populate a tab with the map legend how to load a TOC in a tab allowing to check layers to make them visible/invisible Thanks
... View more
12-10-2012
09:48 AM
|
0
|
1
|
1073
|
|
POST
|
Hi all Is there a command in Model Bulder that allwos to find all the adjacent polygons for the selected oplygon. I know that in 10 there is Polygon Neighbors thanks
... View more
12-07-2012
03:50 AM
|
0
|
2
|
6290
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-01-2026 12:34 PM | |
| 1 | 12-02-2022 08:17 AM | |
| 1 | 12-26-2025 05:02 AM | |
| 1 | 08-05-2025 04:28 AM | |
| 1 | 08-05-2025 04:33 AM |
| Online Status |
Online
|
| Date Last Visited |
a week ago
|