|
POST
|
I have a service with two layers. Using the AGSJS TOC widget is there a way to hide one layer from the TOC (not the map), while still keeping the 2nd layer in the service within the TOC and able to be turned on and off? You can try using CSS styles, find the node id for that layer, then hide it in CSS. Not 100% dynamic, but easy to implement.
... View more
01-07-2013
05:53 AM
|
0
|
0
|
404
|
|
POST
|
We recently documented this spec here: http://resources.arcgis.com/en/help/arcgis-web-map-json/ That's very helpful. It looks like it still missing a few items that has been around for a while, for example, pre-defined query. It's quite useful to create focused apps without much coding. I recall seen "query" in some of the JSON returned from arcgis.com, maybe still in beta? After all, WebADF's XML spec has pre-defined query that can be configed using app manager, and ArcXML has "STOREDQUERY" tag for similar capabilities.
... View more
01-03-2013
07:15 AM
|
0
|
0
|
1132
|
|
POST
|
So it would be a complete mirror image of what ArcGIS.com is but all local. That product is called "ArcGIS online on premise". Call your Esri rep for more info. Total cost of ownership is a bit high. I do not think they provide the source code for the viewer though, so the customization would be limited.
... View more
01-02-2013
08:41 AM
|
0
|
0
|
1132
|
|
POST
|
Is there any way to have the map service layer initially expanded but all collapsible groups within the map service (unique value renderers and group layers) collapsed? I'd suggest you create a enhancement request with the server, so it will return the exact expand/collapse information you set in the MXD. In that case, the TOC can basically reproduce what you configed in the MXD.
... View more
11-29-2012
04:32 AM
|
0
|
1
|
1779
|
|
POST
|
http://gmaps-utility-gis.googlecode.com/svn/trunk/agsjs/examples/toc_collapsed.html It's same built.
... View more
10-15-2012
07:38 AM
|
0
|
0
|
1779
|
|
POST
|
use "collapsed: true" option for each layerInfo in constructor. var toc = new agsjs.dijit.TOC({
map: map,
layerInfos: [{
layer: safety,
title: "Safety Operations",
collapsed: true
},{
layer: census,
title: "Census",
collapsed: true
}]
}, 'tocDiv');
toc.startup(); It's documented in the reference page and source code. search for "collapsed".
... View more
10-15-2012
07:11 AM
|
0
|
0
|
1779
|
|
POST
|
Attached sample should be what you are looking for. However to make it generically usable you need consider basemap coordinate system, cache scheme switch and other WMS specific issues. Basically getTileUrl: function(level, row, col) { var url = ''; var lv = this.tileInfo.lodsByLevel[level]; if (lv) { var xmin = (col) * this.tileInfo.width * lv.resolution + this.tileInfo.origin.x; var ymin = this.tileInfo.origin.y - (row + 1) * this.tileInfo.height * lv.resolution; var xmax = (col + 1) * this.tileInfo.width * lv.resolution + this.tileInfo.origin.x; var ymax = this.tileInfo.origin.y - (row) * this.tileInfo.height * lv.resolution; url = this.url + '?SERVICE=WMS&REQUEST=GetMap&TRANSPARENT=true&FORMAT=image/png&VERSION=1.3.0' + '&LAYERS=' + this.layers + '&BBOX=' + xmin + "," + ymin + "," + xmax + "," + ymax + '&CRS=EPSG:' + this.tileInfo.spatialReference.wkid + '&WIDTH=' + this.tileInfo.width + '&HEIGHT=' + this.tileInfo.height +'&STYLES='; } return url; } Full code in attachment.
... View more
10-09-2012
06:25 AM
|
0
|
0
|
2118
|
|
POST
|
I'd try extend TiledMapServiceLayer, take the base map's tileInfo, run a few calculations to get the extent based on the row, level passed in by getTileUrl and construct the right WMS request. Bring in openlayers seems quite a large overhead. I have a WMS server I want to make tiled requests of. It is not WMTS, only WMS. OpenLayers handles this but I cant seem to figure out how to do it in the api. Basically, i cant make level row col type requests, i need to make individual bounding box requests
... View more
10-04-2012
12:46 PM
|
0
|
0
|
1537
|
|
POST
|
Hi This works fine, but of course the TOC code doesn't pick up on the changed visibility and shows all layers unticked (the default state) Any ideas how I should call a refresh or something of the TOC to get the boxes ticked? The latest version (2.02) at http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109 will use the actual visibility of each layer if they are different than the settings in map service. You can also use the cross domain build without downloading it.
... View more
07-23-2012
12:22 PM
|
0
|
0
|
2341
|
|
POST
|
There were some votes on ideas.esri.com on this topic and even a "workspace" setup for it. Out of curiosity I requested access to it but there is nothing in the workspace. Makes me wonder if it is lack of need, interest, or resource. Making the portal/arcgis.com viewer available for customization would be a quick win, I would be interested to know what's the barrier of preventing that from happening, is it supportability, licensing concern, or something else that end users are not supposed to know?
... View more
07-23-2012
05:54 AM
|
0
|
0
|
1225
|