|
POST
|
Looking at the Layer list, index 19 is a group layer and 23 is a member of that group. http://servicesbeta2.esri.com/arcgis/rest/services/Water_Network/MapServer So by specifying service.setVisibleLayers([19,23]), you are asking for the whole group of layers. Index 19 will take precedence over the individual layer of 23. If you omit index 19 and only use service.setVisibleLayers([23]), I think you get your desired result. Just remember when you specify the index of a group layer, you are bringing all layers in that group. Hope that helps a bit.
... View more
12-03-2012
12:00 PM
|
0
|
0
|
963
|
|
POST
|
Are there any estimates (ballpark even) on when the ESRI API will fully support the Dojo 1.7 (and higher) toolkit? I'm having a very difficult time trying to mash both loaders together (dojo.require alongside require()) One example: the esri.Map object doesn't implement Dojo's "Evented" mixin..., so I can't use the 'dojo/on' module Has anyone been successful in utilizing both Dojo versions in tandem? Thanks! -Jackson A good habit at this point would be to load modules like dojo/_base/connect, dojo/_base/array, dojo/dom, ... etc. This way you can avoid needing to do things like dojo.connect(), dojo.forEach(). I don't think I have read that the dojo.function() methods will go away, but I know it's suggested to not do it anymore. http://dojotoolkit.org/reference-guide/1.8/releasenotes/migration-2.0.html I agree though, I like to think the dev team is working behind the scenes looking ahead to Dojo 2.0 to migrate the required modules to the Evented method. It's probably a large task under the hood so as to not break stuff thoughout the API. You can still build you modules with Evented. I build out all my modules and widgets with Evented so that I can do things like a connect event and bubble it with this.emit(). So far, I have had pretty good luck using things like below to load esri modules to the esri namespace. I don't think I use dojo.require() for anything I'm doing anymore. define(['esri/tasks/identify'], function(){/* stuff* /});
... View more
12-03-2012
08:43 AM
|
0
|
0
|
443
|
|
POST
|
How about if you listen to the window resize? dojo.connect(window, 'resize', map.resize); I changed mine from this to what you had, to listen to the dijit.byId('map') and it did not resize when I maximized in IE8, but I always just listen for the resize event of the window anyway and it's always worked for me. It may have to do with some css as well if Kelly could not reproduce.
... View more
11-14-2012
01:15 PM
|
0
|
0
|
985
|
|
POST
|
Are you looking to extend the template picker or build something custom? I've had a couple of scenarios where I needed to create data that wasn't tied to a map service, so I made a drag and drop utility with custom symbols. Here is a sample http://www.odoe.net/apps/dndeditdemo/ Here is the source https://github.com/odoe/AGSDragDropHandler Combine that with the Editor widget and a FeatureLayer and you should be flying. It might help out.
... View more
11-02-2012
08:30 AM
|
0
|
0
|
584
|
|
POST
|
Someone shared this on twitter the other day when the API went down. This example uses jQuery, but could be applied to any CDN library that you also want to host locally. http://stackoverflow.com/questions/1014203/best-way-to-use-googles-hosted-jquery-but-fall-back-to-my-hosted-library-on-go/1014251#1014251
... View more
10-31-2012
11:10 AM
|
0
|
0
|
1032
|
|
POST
|
The link geos_rfleet provided has everything you need. If you assign the connect method to a variable, you can disconnect it at a later time. so var handle = dojo.connect(item, 'event', function(){...}); then anywhere else in your code, you need to release that connected event dojo.disconnect(handle);
... View more
10-31-2012
05:41 AM
|
0
|
0
|
908
|
|
POST
|
Might be some maintenance. This happens to me when doing some odd-hour dev, but usually clears up pretty quick. All my apps are down too, but such is the risk of using an external cdn. Gives me time to play with some other stuff.
... View more
10-29-2012
10:21 AM
|
0
|
0
|
1650
|
|
POST
|
If I understand correctly, you can also pass it what I believe is referred to as a function maker. var _funcMaker = function(type) { return function(queryResults) { // do something with results based on type // that was passed to it }; }; findTask.execute(findParams, _funcMaker("find")); The _funcMaker function will take any 'extra' params you want to use and return the function that processes the queryResults.
... View more
10-17-2012
01:02 PM
|
0
|
0
|
1550
|
|
POST
|
So is hullString still a string when you pass it in that last line? If it's a string and you don't want to worry about JSON.parse being available, you can still use the dojo/json module to parse it for you. http://dojotoolkit.org/reference-guide/1.7/dojo/json.html You need to parse it one way or another to work.
... View more
10-11-2012
10:49 AM
|
0
|
0
|
1424
|
|
POST
|
You really want to sort on the featureSet.features array. You can pass a function to the sort method to determine your sort. I use this, but there's probably a better way to do this, since I need a text sort, not numbers or dates. var _sort = function(field) { return function(a, b) { var x, y; x = a.attributes[field].toLowerCase(); y = b.attributes[field].toLowerCase(); return (x < y) ? -1 : 1; }; }; _featureSet.features.sort(_sort('FIELD_NAME')); edit, had wrong file in clipboard
... View more
10-10-2012
07:42 AM
|
0
|
0
|
1142
|
|
POST
|
I had an app that was throwing this error when manually creating some geometries. It wasn't a huge deal, but I implemented your solution and it works perfect. Thanks.
... View more
10-04-2012
11:45 AM
|
0
|
0
|
600
|
|
POST
|
A quick glance, I do notice you are binding dojo.addOnload() twice, once in each *.js file you reference. I get the following error in Chrome and IE8
Message: Tried to register widget with id==map_infowindow but that id is already registered
Chrome seems to be more forgiving though and shows your map.
... View more
10-03-2012
01:14 PM
|
0
|
0
|
379
|
|
POST
|
I'd love to hear more about the labor involved in the work you had to do for a project like this. We plan on doing this with our plants at some point, but we just don't have the staff to process design drawings to GIS, even for our smallest plant.
... View more
10-02-2012
02:14 PM
|
0
|
0
|
5244
|
|
POST
|
It was a booboo. http://forums.arcgis.com/threads/65183-quot-json-is-undefined-quot?p=226403&viewfull=1#post226403
... View more
09-28-2012
08:22 AM
|
0
|
0
|
649
|
|
POST
|
Playing with this in Chrome, looks like the class name you are looking for is dojoxGridMasterHeader. The default height seems to be 26px; You could play with something like this. /** Use em, px or %, whatever you prefer **/ .dojoxGridMasterHeader { height: 20px !important; font-size: 75% !important; }
... View more
09-20-2012
01:45 PM
|
0
|
0
|
978
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 1 | 3 weeks ago | |
| 1 | 12-09-2025 08:20 AM | |
| 1 | 11-13-2025 03:13 PM | |
| 2 | 11-06-2025 11:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|