|
POST
|
without seeing code its going to be nearly impossible to help, but it looks like maybe you have a callback that has incorrect parameters
... View more
03-19-2014
12:19 PM
|
0
|
0
|
3292
|
|
POST
|
if you are looking for the source, non-obfuscated code, its not available. You have to work with the api provided, extend it, or write your own
... View more
03-19-2014
09:17 AM
|
0
|
0
|
2588
|
|
POST
|
I know its not ideal, but I would use console.dir(portal) before the load event call to sniff it and see if there is an undocumented error method
... View more
03-17-2014
05:18 AM
|
0
|
0
|
887
|
|
POST
|
ok i think you are skipping alot of steps you need to download the agsjs package in your project you should have (at least) the agsjs folder the TOC.js file the css/TOC.css the templates/tocNode.html and templates/tocNode_files/${_blankGif} plus you need to add the agsjs to the packages of your dojoConfig
... View more
03-14-2014
12:35 PM
|
0
|
0
|
2072
|
|
POST
|
updated link to our new viewer www.mymanatee.org/gisapps/mobile/index.html
... View more
03-14-2014
11:22 AM
|
0
|
0
|
2884
|
|
POST
|
did you download and add the agsjs folder and files to your project?
... View more
03-14-2014
10:49 AM
|
0
|
0
|
2072
|
|
POST
|
I wish, I have never been. I do make it to the UC every other year, but County Budgets are very volatile. Plus our Department has gone from 11 people to 5 and our workload has tripled, so not alot of free time. What I do have I try to spend on here. Lots to learn, Lots to share (mostly from mistakes I have made myself at one point in time)
... View more
03-14-2014
10:44 AM
|
0
|
0
|
1580
|
|
POST
|
Vinay, The problem is the lazy loading of layers. It sounds like one of yours is just taking longer to load so it is loading later. You have two options 1. Add the map layers together with addLayers([0,1]) instead of adding one at a time. This will guarantee the order. 2. Specify an index value when you add the layer. i.e addLayer(top layer) addLayer(bottom layer, 0) forcing it to the bottom -Jeff
... View more
03-14-2014
10:26 AM
|
0
|
0
|
690
|
|
POST
|
As a side not, if you don't need the feature layer functionality, don;t use it. If you add the Trails as a Dynamic/Tiled map it will draw underneath
... View more
03-14-2014
09:09 AM
|
0
|
0
|
1075
|
|
POST
|
Feature Layers are graphics, as are the results of the NA service. So they will be drawn in the order added. If you want to change the order, you would have to create Multiple GraphicsLayers, which you could then control the order of.
... View more
03-14-2014
09:08 AM
|
0
|
0
|
1075
|
|
POST
|
actually you (at a minimum) have the same problem as the person above you require([
"esri/map", "esri/config", "esri/dijit/HomeButton", "esri/dijit/BasemapGallery", "esri/arcgis/utils", "esri/dijit/Scalebar",
"esri/layers/ArcGISDynamicMapServiceLayer",
"esri/tasks/Geoprocessor", "esri/tasks/FeatureSet", "esri/toolbars/draw",
"esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleLineSymbol", "esri/renderers/ClassBreaksRenderer",
"esri/graphic",
"dojo/_base/Color", "agsjs/dijit/TOC",
"dojo/dom", "dojo/dom-style", "dojo/query", "dojo/parser", "dojo/on", "dojo/_base/connect",
"dijit/registry",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/layout/AccordionContainer",
"dijit/TitlePane", "dijit/form/CheckBox", "dijit/form/ComboBox", "dojo/parser", "dijit/Toolbar", "dijit/form/DropDownButton", "dijit/form/TextBox",
"dojo/domReady!"
], function(
Map, esriConfig, HomeButton, BasemapGallery, arcgisUtils, Scalebar,
ArcGISDynamicMapServiceLayer, Legend,
Geoprocessor, FeatureSet, Draw,
SimpleFillSymbol, SimpleLineSymbol,
Graphic,
Color, ClassBreaksRenderer, TOC,
dom, domStyle, query, parser, connect, on,
registry
) { These are out of sync with each other. they have to match PERFECTLY, in order. SO you added the "Legend" to the function, but not to the require. So Geoprocessor is being aliased "Legend". FeatureSet is now "Geoprocessor" etc....
... View more
03-14-2014
09:05 AM
|
0
|
0
|
2072
|
|
POST
|
sure jon, ill cover for all the developers having fun at the dev conference while I sit here in my cube all week. 🙂
... View more
03-14-2014
09:00 AM
|
0
|
0
|
1580
|
|
POST
|
If you are using a webcache you might try clearing it. Getting the error in multiple browsers, when its a css issue, makes me think either something is getting block/corrupt, or something changed on the source side.
... View more
03-14-2014
08:58 AM
|
0
|
0
|
1468
|
|
POST
|
Happy to help. I am willing to be almost every developer (myself included) has made that mistake at least once. Glad you are on the right track.
... View more
03-14-2014
08:56 AM
|
0
|
0
|
1580
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|