|
POST
|
add another vote for a hideLayer method. I have alot of services. I would love to hide one or two from showing up in the legend without having to hardcode the dozens of others.
... View more
04-29-2014
05:03 AM
|
0
|
0
|
1123
|
|
POST
|
this is just a guess but i am pretty confident it is your problem. When you are hardcoding, you are sending an array. When you pass as a variable, you are sending a string that Looks like an array (you replaced the )) with ]] ) but is not actually an array. I think you need to actually build an array or convert your string to an array. try calling dojo isArray on the variable. If it is false, that is your problem http://dojotoolkit.org/reference-guide/1.7/dojo/isArray.html
... View more
04-29-2014
04:52 AM
|
0
|
0
|
1320
|
|
POST
|
Sorry, but are you actually saying that the measure widget is inaccurate for all other projections? I hope not as this is now in my production system and being used daily. All my mapping is in BNG 27700 Any time you do a conversion errors are introduced. If you have verified your measurements to make sure that you are working in and reporting measurements of the correct projection, then the measurement widget produces results as accurate was a web system can.
... View more
04-29-2014
04:12 AM
|
0
|
0
|
495
|
|
POST
|
sure jon, way to post something functional and elegant and make mine look like *** 🙂 OP, use jon's solution. Its much more complete.
... View more
04-28-2014
01:53 PM
|
0
|
0
|
3169
|
|
POST
|
you cant just append a bunch of geometries together and get the combined extent. try (not sure union will work with an inital null extent) function getLocRes(results) {
map.graphics.clear();
var geom;
var combinedExtent = new Extent();
var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([80, 0, 0]), 2), new dojo.Color([80, 0, 0, 0.5]));
var res = results.features;
for (var i = 0;i < res.length; i++) {
geom = results.features.geometry.getExtent();
combinedExtent = combinedExtent.union(geom);
var graphic = results.features;
//var graphic = new Graphic(reGeo,symbol);
graphic.setSymbol(symbol);
map.graphics.add(graphic);
}
map.setExtent(combinedExtent , true);
}
... View more
04-28-2014
01:45 PM
|
0
|
0
|
3169
|
|
POST
|
1. Define the polygon spatial reference before you add the ring 2. alert (thisLocs) right before you try to use it. My guess is this is a scoping issue and it is null try changing the line to on(map, "load", lang.hitch(this, function(){addGraphic();}));
... View more
04-28-2014
01:32 PM
|
0
|
0
|
1320
|
|
POST
|
Just a side not, but my (occasionally not so humble) opinion: The inherent inaccuracies of browsers, pixels, screen scaling, clicking, etc.. will all add more inaccuracies than the difference between working natively in the local coordinate system and the errors introduced in the web mercator to local conversion. If you need something more accurate than that, you need a surveyor, not a web application.
... View more
04-28-2014
10:42 AM
|
0
|
0
|
2948
|
|
POST
|
Containers dont need aliases if you only use them in defined HTML If you try to create them programmatically (new BorderContainer) you will need an alias. It is my opinion, for both readability of code and preventing errors down the road, to just add aliases for everything. It doesn't hurt anything and can prevent alot of problems
... View more
04-24-2014
05:33 AM
|
0
|
0
|
1302
|
|
POST
|
Im getting a firebug error that is driving me nuts. I get 17 errors, one for each secure layer in my map Error: Token Required ...ost,w=r.crossOrigin):u=!!r);f=m.mixin({},f);f._ssl&&(f.url=f.url.replace(/^http:... .cache["esri/request"]/</t/f.load@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:631 .cache["dojo/_base/xhr"]/</b._ioSetArgs/<@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:188 c@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:75 d@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:75 .cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:76 c@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:75 d@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:75 .cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:76 .cache["dojo/_base/xhr"]/</b.xhr/<@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:192 .cache["dojo/Deferred"]/</k@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:196 .cache["dojo/Deferred"]/</r@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:196 .cache["dojo/Deferred"]/</f/this.resolve@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:198 .cache["dojo/Deferred"]/</a@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:197 .cache["dojo/Deferred"]/</k@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:197 .cache["dojo/Deferred"]/</r@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:196 .cache["dojo/Deferred"]/</f/this.resolve@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:198 .cache["dojo/Deferred"]/</a@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:197 .cache["dojo/Deferred"]/</k@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:197 .cache["dojo/Deferred"]/</r@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:196 .cache["dojo/Deferred"]/</f/this.resolve@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:198 .cache["dojo/Deferred"]/</a@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:197 .cache["dojo/Deferred"]/</k@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:197 .cache["dojo/Deferred"]/</r@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:196 .cache["dojo/Deferred"]/</f/this.resolve@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:198 m@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:158 f@https://www.mymanatee.org/arcgis_js_api/library/3.9/arcgis/?v=3.9compact:161 Doesnt tell me what request is being made. The error occurs on layer creation, but before the "onlayeradd" event is fired. I am using the identity manager, logging esri.id shows the credential object and all 17 resources listed prior to throwing the errors. Any ideas? nothing is broken, but the firebug errors are really annoying https://www.mymanatee.org/gisapps/mobile/index.html?type=utilitiesinfrastructure u: util p: util
... View more
04-21-2014
09:20 AM
|
0
|
2
|
1171
|
|
POST
|
i wonder you require has connect (including contentpane, bordercontainer, etc..) but it is not in your function. Double check your syntax and make sure you are aliasing properly
... View more
04-18-2014
08:28 AM
|
0
|
0
|
2625
|
|
POST
|
Jeff could you elaborate on why removing the default basemaps breaks the Gallery? I'm running into an issue where if I use 'showArcGISBasemaps : false' my dropdown menu won't populate with my custom list. It worked when I did it in a dojo title pane, but not working in a button. I'm a newb so probably it is forehead-slap kind of situation, but I am curious what is known to break. Thanks! I havent used it in a few versions of the api. But i was actually hiding/removing layers AFTER it was constructed by removing DOM elelements. Expectedly that broke things If you are just setting 'showArcGISBasemaps : false' you should not be breaking anything. If you could show some code..
... View more
04-18-2014
08:01 AM
|
0
|
0
|
2105
|
|
POST
|
I have seen this before if you specify a field name that does not exist. Double check your rest endpoint and make sure the field names you require are accurate
... View more
04-11-2014
01:03 PM
|
0
|
0
|
8234
|
|
POST
|
also, you cannot just run the file in ie/chrome, etc.. It MUST be run/hosted on a webserver.
... View more
04-11-2014
01:01 PM
|
0
|
0
|
1184
|
| 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
|