POST
|
It may sound odd. But I need to create a map service so that the client apps could decide whether to use it as cached or dynamic. Of course, when the service is used as dynamic, the client app should be able to manipulate individual layers. On the other hand, the static tiles will be returned when the service is as cached. In my test (AGS10.2, two layers), the service is set as a cached service on the service configuration (ArcCatalog). I could initialize the map service in any of two ways with no problem. However, I wasn't able to turn on/off individual layers even when the map service is initialized as dynamic, where layers seem fused and make no response to the rest request ("Layers - Show:0/1"). I can always create two services, one dynamic and the other cached. Is it possible to create a single map service to serve both ends? Thanks,
... View more
01-02-2012
10:29 PM
|
0
|
1
|
779
|
POST
|
For now the documentation will be updated to be in sync with the current implementation and the usage of DataLayer has been added in the stack of the possible enhancements for a future version. Thanks for reporting that. thanks for clarifying that.
... View more
12-10-2011
05:41 AM
|
0
|
0
|
297
|
POST
|
Hi guys, I want to change the visibility of a layer within a map service. From the documentation, it's clear to set AGSDynamicLayerView.visibleLayer with the array of visible layer ids. However, it doesn't seem working for me. Even when I manually zoom in/out the map afterwards, the new visibility doesn't change. Is there any other call I should make? I am using xcode 4.2 + iOS5 + AGS API 2.1.
AGSDynamicMapServiceLayer *dynLayer = (AGSDynamicMapServiceLayer *)dynamicLayerView.agsLayer;
NSMutableArray *visLayers = [NSMutableArray arrayWithCapacity:1];
// add some layers into visLayers
dynLayer.visibleLayers = [[NSArray alloc] initWithArray:visLayers];
Thanks,
... View more
12-10-2011
05:16 AM
|
0
|
1
|
432
|
POST
|
I got your point. It seems that the documentation is not in sync with the implementation i.e. , at this time, AFAIK it's not possible to use a Data Layer as facilities. Now I am not sure whether it's the implementation or the documentation which is wrong. I'll try to find more infos and will come back to you. Thanks! Look forward to you reply.
... View more
11-22-2011
02:30 AM
|
0
|
0
|
297
|
POST
|
Thanks for the reply, Dominique. I don't disagree with you on allowing users to input the facilities at the run time as one of options. I think it is equally useful or practical, if not more, to allow users to use the pre-set facilities as another option. That documentation in your reply shows facilities "can be either an instance of DataLayer or FeatureSet". So does the REST API documentation (http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/index.html?cfSolve.html). My question is how to set facilities with Data Layer using the REST API. Are both documentations wrong?
... View more
11-22-2011
01:35 AM
|
0
|
0
|
297
|
POST
|
Hi guys, I couldn't find a way in the Help document to set a layer in a map service as an input to the Facilities parameter of RouteClosestFacilityParameters. Do we have to pass in the facilities as graphics? It read that it's possible to do so in the REST api (http://denverdemo.esri.com/ArcGIS/SDK/REST/index.html), but the document is out of date. I tested the task on my AGS 10 but the only acceptable parameters are features. I think it's not really practical to feed the task with a lot of facility data at the run time, especially when the facility data can be easily defined and queried within the map service. Does anybody feel the same way?
... View more
11-21-2011
12:21 AM
|
0
|
6
|
719
|
POST
|
I'm experiencing an error with a map service that is published as both a feature service and a mapservice when I hit the properties button: I have the feature service layers excluded in the xml so that only dynamic map services will show up. All other map services that are not published as feature service will show the properties. any ideas You ran into the same error as Erwen. The updated code with the 4-15-2011 revision checks the null object reference rather than throw an error. However, I still couldn't get esri sample services and my test ones to produce any null value in either layer or service properties, as your service did. Is it possible for me to test the widget on your services? I don't understand your second point. Do you want to show the feature service with other regular map services? Can you elaborate it?
... View more
04-13-2011
10:54 PM
|
0
|
0
|
316
|
POST
|
Hello zilla, thanks for the last update. But, now i've got an error popup when the property button in front of a service is clicked (the buttons in front of groups or layers are ok) error : Null object reference at : Legend2.Handlers:DynamicMapDetailHandler/buildMapDespt() DynamicMapDetailHandler.as at line 71 and i still have the problem whith the checkbox of groups an layers until the checkbox of the service is not checked/unchecked Erwan Hi Erwan, The updated code with the 4-15-2011 revision checks the null object reference rather than throw an error. However, I still couldn't get esri sample services and my test ones to produce any null value in either layer or service properties, as your service did. Is it possible for me to test the widget on your services? As for your question on checkboxes, you need to turn on a service checkbox in order to see any layer from that map service. Turning off a service checkbox will turn off all layers. The service checkbox controls whether the output image from that service will display or not. The layer checkbox controls whether the map service will include that layer in the output image. Does it make sense to you?
... View more
04-13-2011
10:51 PM
|
0
|
0
|
316
|
POST
|
I'm actually on 10 already. I don't know if my service is available to the public, though. How would I determine that? If I had to take my best guess, I'd guess it's not, as we operate in an environment where internet is not available, only intranet. Thanks for your help, and I'll look forward to hearing back from you... Justin If you are on 10 already, please make sure you apply SP1 to your arcgis server. iiakdenipl00120 is host name, but unreachable. Check if your server is accessible outside your domain. Usually your server's qualified host name should be something like gis.server.edu.
... View more
04-08-2011
08:07 AM
|
0
|
0
|
369
|
POST
|
Hi lallen/philip, I implemented your suggestion and uploaded the new widget. Please check it out. Thanks for the suggestions! 1. added propertyEnabled in the widget config to show or hide the property buttons 2. added filterEnabled in the widget config to show or hide the keyword filter and collapse/expand all buttons lallen, you could include multiple excludedLayer tags, one for each layer to be excluded. The syntax is like this: <excludelayer>sample_layer1</excludelayer> <excludelayer>sample_layer2</excludelayer>
... View more
04-08-2011
02:19 AM
|
0
|
0
|
369
|
POST
|
Plaizilla, When I tried to implement your widget I get the following error message: Failed to load the legend for States Code: 500 Error: Unable to generate legends: iiakdenipl00120 Unable to connect to Host: iiakdenipl00120 Port: -1 Please verify the Service URL specified is correct :- http://iiakdenipl00120/ArcGIS/services/AMV/States/MapServer The URL is correct (all the data displays correctly on the map) - do you have any idea what's going on? Thanks for a great widget, and I'll look forward to hearing your response... Justin Hi Justin, Actually the widget depends on a shared tool on arcgis.com/sharing/tools/legend?soapUrl=xxx to generate a legend on 9.3.1. Your service (SOAP) has to be accessible to the public, so the shared tool could generate the legend for your service. It is definitely possible to write a separate tool on my own, but I am not sure if it's worth the effort, since more and more people are moving to 10 (fast). Sorry about that. I posted that limitation a couple of days ago in Code Gallery. What is your time frame of moving to 10 like?
... View more
04-08-2011
01:34 AM
|
0
|
0
|
369
|
POST
|
Plaizilla Until you decided whether to support WMS, or not...is there a way to turn off the messag boxes when there are WMS layers referenced in the config file? Hi Nathan, You could use the excludelayer tag in Legend2Widget.xml to exclude the wms layers from the legend. <excludelayer>your layer label in [operationallayers]</excludelayer>
... View more
04-04-2011
08:13 PM
|
0
|
0
|
369
|
POST
|
Thanks Erwan. I will work on fixing those bugs. -That's ok now, i'm seeing my v10 operational layers without error popup. Great! -"The last version is able to handle tiled services", is there a way to configure the widget to do it ? I don't see my tiled services (v10). If you add a tiled service into the operationalLayers tag, the widget will generate a legend. However, the widget does ignore any basemap layer. -could you please set all the text labels to be configurable in the Legend2Widget.xml ? fixed in Revision 4-4-2011 - does the widget only use the color style of the application ? the fields list would need more contrast or different color (see the picture in attachment) Yes it only uses the app color style. I agree the field list needs a better style. - A problem with the TOC checkboxes : when a check box in front of a layer group or a layer is defauld checked, when it is unchecked the layer or group layer stay visible. It doesn't work until the service's check box is unchecked and re-checked. Let me look into this. - A little problem with the icons, when the 3 points icon i used to switch the property view, the selected icon on the top right doesn't switch. fixed in Revision 4-4-2011 - Like Robert, i'd prefer plus & minus icons too. Please feel free to modify the icons (i_xxx_collapsed.png and i_xxx_expanded) or any other icon.
... View more
04-04-2011
08:26 AM
|
0
|
0
|
407
|
POST
|
I looks like there are multiple requests on the widget comments to please release code, me being one of them. This is a great widget, and I really want to implement!! I have another request/improvement: Since you now have the symbol and layer name showing up together, is it possible to have the symbol to the left of the layer name instead of below? This would save much needed space and excessive scrolling. I have seen this in javascript, picture example is below. [ATTACH=CONFIG]5691[/ATTACH] The widget does have the icon and name of each layer on the same row (as showed in the widget thumbnail). Please let me know if you see anything different.
... View more
04-04-2011
07:51 AM
|
0
|
0
|
407
|
POST
|
Robert, Thank you for comments and suggestions. I have been focusing on the functionality so far. There are a lot of cleanup and styling work to do. 1. I intend to leave icons to users, since everyone has his/her preference about the look and feel. Personally, I am sort of quirky enough to like the globe things better than the plus/minus icons. I know a lot of people would agree with you. 2. You are right. I didn't use your sd_overlay. No offense. When I looked at your widget (Great Work!), I think an out-of-scale icon was kind of hard to see. For me, it is easier to notice the labels going gray. 3. It is png32. 4. I will try what you suggested. 5/6. I will fix them. Thanks again!
... View more
03-31-2011
12:07 AM
|
0
|
0
|
407
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|