POST
|
Could anybody ever get this portion of the agsjs connection code to work? I could only get a full direct path to the 'agsjs' directory to work Bottom line is that you need to let the browser resolve to the correct path, and that depends on your folder structure. You can see where the 404 error says in firebug, or simply log the path out to see if matches your actual folders.
... View more
08-01-2013
07:29 AM
|
0
|
0
|
1919
|
POST
|
There should not be anything special about Accordion container. This shows how it works: http://gmaps-utility-gis.googlecode.com/svn/trunk/agsjs/test/toc_accordion.html you may consider using the latest TOC widget code from http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109
... View more
07-30-2013
11:19 AM
|
0
|
0
|
393
|
POST
|
Hello, For those folks that use the widget agsjs.dijit.TOC, please be aware that a few enhancements have been put in, specifically: --FeatureLayer. Supports Simple, UniqueValue and Range Renderer. --AMD compatible. support both AMD and classic syntax (with sample code). --fixed some problem when refresh after layer list change. Some of the fairly complex but less known functionality was dropped to simplify the code upgrade, such as creation of check box on legend items based on UniqueValueRenderer, etc. For live sample and download, please go to http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109 Nianwei Liu Charlotte, NC
... View more
07-26-2013
10:51 AM
|
1
|
28
|
8032
|
POST
|
Oops! Here it is sorry! Not positive what exactly cause this (could be a racing situation), but the left side's symbol is rendered on server (result of a legend operation), and right side symbol is rendered on client by dojo using the renderer information of the layer. Server symbol should be used whenever possible because they are more faithfully representing the mxd than browser renderered. However, there are certain cases the client symbols are used either because server symbol not returned in an async request queue, or not available. It is possible to force the order of /layers/ and /legend/ call in the TOC code, but it could get messy when trying to handle older version of AGS server when /legend/ operation is not possible and need to use arcgis.com's SOAP utility. And that's not the good solution anyway. It should be solved at REST API level. The /legend/ and /layers/ operations have many redundancy and overlapping, and not consistent even for server symbol rendering. I have a few bugs reported and enhancement for the REST API to combine legend and layers operation for several years, but nothing has happened yet.
... View more
06-03-2013
05:10 AM
|
0
|
0
|
352
|
POST
|
The TOC has a feature that produce check box for unique value renderer, so you can avoid creating many layers, each one for a particular type. This feature uses layer definition to manage the visibility of each unique value. It's possible that it ignored layer definition set externally. You could either try to fix it in the source code to honor externally set definition, or comment out all code that set layer definition inside the TOC.
... View more
06-03-2013
04:52 AM
|
0
|
0
|
216
|
POST
|
GraphicsLayer is not supported. Do not have time to added it any time soon. If someone wants to give a shot you are welcomed to do so. Basically you need to use esri.symbol.getShapeDescriptors() to get graphics context and use dojo's graphics library to draw the symbol in a node of TOC.
... View more
05-21-2013
08:28 AM
|
0
|
0
|
426
|
POST
|
I suggest watch firebug to see what's been sent to REST end point. If the request appears to be correct (i.e. layerIds and layerOptions are what you need), then there is a chance that the REST end point may ignore layerIds if the option is VISIBLE_LAYERS, you can try set it to ALL. (That's what I do to implement the functionality of only identify visible layers, although not use the JSAPI). If after setting to ALL is still not getting your results, exam the group layers. Due to the fact that REST API does not handle "underfined", plus the true/false option can not be accurately represent a "partial" state (i.e. some layers in the group is visible), the REST API has to make some assumptions to deal with groups. That undocumented assumption can change between arcgis server versions, so test carefully. What I can tell you is that the TOC widget force groups to be off (thus not sending them in "show:" to refresh dynamic layer). The reason been the rendering engineer will render every individual layer in a group regardless it's visibility state if it's parent is listed in the "show" list. If that's actually caused your identify problem, you may need to add those groups in the identifyParams. Again, this also could change between versions. In summary, watch REST communication in firebug, test out how REST handle groups, you should be able to get what you want. There is no need to programmatically check the boxes. Just use dynalayer.visibleLayers.
... View more
04-24-2013
07:37 AM
|
0
|
0
|
621
|
POST
|
@dmcgill: Your folder structure is not typical. It can work but you need know more how dojo loads. Run firebug and watch network tab you should see many red 401s. Move files to location that matches the request, normally within same folder as app. @dlimos: You should check Google's Term of use for details as they change from time to time. In a nut shell, if your app is publicly accessible and you are not charging user a fee you can use the free license with its quota limit, everything else, such as deploying in Intranet, requires a business license, which is charged by API load count.
... View more
04-09-2013
08:27 AM
|
0
|
0
|
102
|
POST
|
I've noticed the geocoder widget uses a hard-coded "singleLine" parameter for locator service. That works fine with the default Esri global locator, because it happens to accept "singleLine". However, almost every locator built out of ArcGIS uses "Single Line Input", three words spelled out with space in between. That makes the geocoder widget not suitable for many locators. I would assume the widget would at least query the locator meta data the first time and then send the parameters the locator are expecting, but in this case, it seems was forgotten?
... View more
03-11-2013
06:01 AM
|
0
|
1
|
598
|
POST
|
In ArcMap, File--add a query layer, then create a SQL query with DISTINCT. Note although it says add a layer, you do not need to have spatial column. The query will be added as a TABLE. Then run a where="1=1" on this table.
... View more
03-04-2013
10:50 AM
|
0
|
0
|
559
|
POST
|
Hello fellow developers, We have a situation that a tough book need to run several GPS enabled applications (including one with ArcGIS runtime) simultaneously. They all need get an hold on the COM port exclusively, as such, some sort of port splitter software is needed. There are a couple of them on market after a quick search, and one of the popular one (xport) does not have 64 bit version. I was wondering if someone can share their experience with the commercial ones here. Thanks in advance Nianwei Liu City of Charlotte
... View more
02-20-2013
08:08 AM
|
0
|
0
|
869
|
POST
|
How do we access the /javascript folder for that site to see the javascript source code rel linked to in the index.html? Gave me 403 forbidden. As a general practice we do not allow directory browsing against a directory. You can however follow individual file's URL either via 'view source' or firebug net to get to them.
... View more
02-04-2013
05:24 AM
|
0
|
0
|
783
|
POST
|
Has anyone integrated this with the ESRI Basic Viewer template? Here is a starter: http://maps.charlottenc.gov/templates/basicviewer/?webmap=460c54f38736428fa9c3429071be07b8 It also has 2 extra things that I feel might be useful: --Google maps as a basemap option -- toggle labels for basemaps if available.
... View more
01-30-2013
09:02 AM
|
0
|
0
|
783
|
POST
|
Is it Possible to add Google Earth as baselayer using ArcGIS API for Javascript ? Yes, you can implement a subclass of layer and use layerContainer as container, then embeded an instance of google earth plug in using Earth API. Because earth is a 3D visualization, there are some limitations. You will have to convert all your Graphics layer's feature into KML based objects, and you may not use any of the tiled map services in your existing map. For dynamic map services you would likely convert them to ground overlay and refresh as view point changes. On top of that you may need use the iframe shim technique to embed the plug in to your page.
... View more
01-23-2013
02:55 AM
|
0
|
0
|
288
|
POST
|
You should change _onClick event handler, not _createChildrenNodes because what you want to change is behavior of the click, not how the TOC is presented. You probably need to create an inner function and make recursive calls to set visibility of all offsprings layers that is not direct children of the clicked group layer. Also, you do not have to format the compressed code to make changes, the original source code is in the "src" folder.
... View more
01-16-2013
09:45 AM
|
0
|
0
|
585
|
Title | Kudos | Posted |
---|---|---|
1 | 09-04-2013 10:53 AM | |
33 | 07-19-2012 01:20 PM | |
6 | 07-19-2012 01:22 PM | |
6 | 07-19-2012 01:22 PM | |
1 | 07-26-2013 10:51 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|