|
POST
|
I thought that the first layer added to the map had to be a base map (or was treated as such). With that logic, maybe you can just add the basemap but pass the option to make the basemap invisible: // Create the map
var map = new esri.Map("map", {
extent:initExtent //initExtent is a variable w/ your initial extent
});
// Set up and establish the data layers for the map, beginning with the basemap
var primaryMapServiceURL = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer";
var theBasemap = new esri.layers.ArcGISTiledMapServiceLayer(primaryMapServiceURL, {
visible: false
});
map.addLayer(theBasemap); The above code is from v2.8 of the API..
... View more
02-13-2013
02:06 PM
|
0
|
0
|
2872
|
|
POST
|
@Diana- Thanks for posting that! I've been looking for that reference for the last week and couldn't remember where I had originally read that. You just saved me a whole lot of headache trying to find it again. 😄
... View more
02-13-2013
11:46 AM
|
0
|
0
|
711
|
|
POST
|
Awesome- glad it worked for you! Sometimes it's an easy fix!
... View more
02-12-2013
10:39 AM
|
0
|
0
|
815
|
|
POST
|
I haven't used either of the widgets you reference but you should be able to. In your map initialization function, try adding something like: dijit.byId('Your Measurement Widgit ID here').hide(); Another possibility could be adding a parameter on the HTML side of things. In one of my apps, I'm using a standard dijit TitlePane which defaults to an expanded state. In my HTML, I added open="false" into the line and it now loads closed by default: <div data-dojo-type="dijit/TitlePane" id="layersList" title="<b>Show Me...</b>" open="false"> Good luck! Steve
... View more
02-12-2013
10:37 AM
|
0
|
0
|
1745
|
|
POST
|
I'm COMPLETELY throwing this out as wild advice but you could look into this HTML5 Canvas for Internet Explorer and see if it helps make the heatmap apps work? I stumbled across this while trying to get charting working for IE-8 (the canvas is an issue for this as well). I never pursued what I have linked but maybe it can work for you... Good luck! Steve
... View more
02-11-2013
09:00 AM
|
0
|
0
|
1156
|
|
POST
|
Take a look at this thread I started a couple weeks ago. ESRI might have introduced a bug within the MapImage functionality with v3.3 of the API. Look at Derek's initial response to my question. There's a certain way you'll need add the mapImage layer to your map (basically, after the map loads- not during).
... View more
02-11-2013
05:57 AM
|
0
|
0
|
815
|
|
POST
|
This bug looks to have been logged as NIM079257 but there is no status or evaluation attached to its description. I'm experiencing this issue both with KML files and mapImage Layers. I'm assuming this has no fix or workaround still? My example: http://gismaps.snoco.org/fws/ Under the "Show Me.." menu, Storm Total Precipitation is a KML Layer and Radar Image / 1-Hour Precipitation are mapImage Layers. Click to turn the layer on and zoom the map out three levels to see the effect. Unlike the original poster, I'm using ArcGIS Server 10.1 and v3.3 of the API.
... View more
02-08-2013
08:17 AM
|
0
|
0
|
1183
|
|
POST
|
@Diana- Do you have a screenshot of what that looks like that you could share? I'm in the same boat and the code provided earlier in this thread didn't work well for me and my own kludgy code to "sense" where my feature is on the map and adjust accordingly is almost more trouble than it's worth. I did submit an enhancement idea for ESRI to add an option to map creation so that the API takes care of all this. It's ESRI's code and they know it better than any one of us. Vote if you're so inclined.
... View more
02-07-2013
09:45 AM
|
0
|
0
|
1177
|
|
POST
|
Welcome to the hell that is Internet Explorer. You can look forward to more of this kind of maddening behavior if you ever try using the charting capabilities of dojo. To your follow up question, you can try reading this: Specifying legacy document modes
... View more
02-07-2013
07:37 AM
|
0
|
0
|
538
|
|
POST
|
I can't explain WHY this happens but Jeff's question about window.setInterval() to refresh my page every 5 minutes appears to be on the money. What I ended up doing was calling my update function immediately before specifying the window.setInterval() command and now the features display immediately like they did under v2.8 of the API. One frustrating gremlin down, several more to go. Thanks again to everyone and especially Jeff! Cheers- Steve
... View more
02-05-2013
09:26 AM
|
0
|
0
|
365
|
|
POST
|
Yeah, I noticed that it happens to any of these NWS mapImage overlays. I just wish I knew how to correct it!
... View more
02-05-2013
07:15 AM
|
0
|
0
|
1470
|
|
POST
|
Ok, for comparison, here's a version of our app using v2.8 of the API: http://gismaps.snoco.org/fws28/ This loads quickly and my data (the square symbology) shows up immediately. It's the same code base with respect to the page's 5 minute refresh and the dojo charting, just modifed as required to get running under v3.3.
... View more
02-04-2013
12:15 PM
|
0
|
0
|
365
|
|
POST
|
If you can get the featureSet of your layer, you could sort the featureSet since it really just is an array: var _sort = function(field) { return function(a, b) { var x, y; x = a.attributes[field]; y = b.attributes[field]; return (x < y) ? -1 : 1; }; }; theFeatureSet.sort(_sort('Your Field Name')); Another way of sorting the featureSet would be: theFeatureSet.sort(function(a,b) { return a.attributes.fieldName - b.attributes.fieldName; }); Both of my examples would be for a numeric field.
... View more
02-04-2013
11:17 AM
|
0
|
0
|
1731
|
|
POST
|
I can tell you that neither of these things were issues with this under v2.8 of the API. I'll try to produce a version using the 2.8 API for comparison.
... View more
02-04-2013
08:12 AM
|
0
|
0
|
1498
|
|
POST
|
Here is the live link for the "drifting" overlay I was previously describing: http://gismaps.snoco.org/fws/ Load the page. Under the "Show Me' dropdown, click the checkbox for Radar Image. Now zoom out one level. Note where the radar returns are. Zoom out again one level. Watch the radar returns drift back eastward. Zoom out one more level. This represents the true spatial position of the overlay.
... View more
02-04-2013
07:45 AM
|
0
|
0
|
1470
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-04-2025 02:30 PM | |
| 3 | 11-13-2025 07:55 AM | |
| 1 | 09-11-2025 10:18 AM | |
| 1 | 09-11-2025 08:03 AM | |
| 1 | 08-13-2025 09:16 AM |