|
POST
|
Ok, we finally have a live version of our app for you to see the lag that I've been describing: http://gismaps.snoco.org/fws/
... View more
02-04-2013
07:39 AM
|
0
|
0
|
1496
|
|
POST
|
Thanks, Derek. That did the trick and now the image displays. I feel somewhat special having stumbled across a bug 🙂 One issue I'm having as I try and incorporate this back into a more complex app I'm developing. From a certain LOD out, the image is displayed in its correct location. From that certain LOD inward, however, the image begins to shift westward and continues to shift further westward with each successive zoom in. If I reverse course and zoom back out, the image will get closer and closer back to where it is supposed to be. I hope to have a live public version I can link to within 2 weeks but for now here are a couple screenshots which show the problem. "ZoomLevel01" shows the mapImageLayer in its correct spatial location. After I zoom my map in one level, I get "zoomLevel02." As you can see, the image has now shifted westward. I'm stumped as to what may cause this because my app uses the same basemap and initial extent as what I originally posted in the simple example (and what's used in your fiddle). Thoughts, guesses? [ATTACH=CONFIG]21217[/ATTACH][ATTACH=CONFIG]21218[/ATTACH]
... View more
01-30-2013
08:19 AM
|
0
|
0
|
1453
|
|
POST
|
I want to add some weather service radar overlays to my app. Originally, I was hoping to add them via a KML/KMZ as provided by this NWS site. After reading the API documentation about KMLLayers, i concluded that this type of KML layer might not be supported (image overlay). That led me to the MapImage layer and I'm having no luck getting the image to display. While investigating the guts of the NWS KML file, I see that it's simply a georeferenced GIF file: [ATTACH=CONFIG]21185[/ATTACH] I noted the lat/long extents, along with the image dimensions and have tried implementing a simple example with no success. So what am I missing?? THANKS! Steve Code: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9"> <!--The viewport meta tag is used to improve the presentation and behavior of the samples on iOS devices--> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Map Image Test</title> <link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/dojo/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/esri/css/esri.css"> <style> html, body, #map { padding:0; margin:0; height:100%; } </style> <script>var dojoConfig = {parseOnLoad: true};</script> <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/"></script> <script> dojo.require("esri.map"); dojo.require("esri.layers.MapImageLayer"); var map; dojo.ready(function() { var initExtent = new esri.geometry.Extent({ "xmin": -13592500, "ymin": 6060280, "xmax": -13506825, "ymax": 6166129, "spatialReference": {"wkid": 3857} }); map = new esri.Map("map", { basemap: "streets", extent:initExtent }); // Define the NWS Radar Layer var radarMi = new esri.layers.MapImage({ 'extent': { 'xmin': -125.725156, 'ymin': 45.222770, 'xmax': -119.252062, 'ymax': 51.156440, 'spatialReference': { 'wkid': 4326 }}, 'href': "http://radar.weather.gov/ridge/RadarImg/N0R/ATX_N0R_0.gif" }); radarMi.height = 550; radarMi.width = 600; radarMi.scale = 1; var nwsRadarLayer = new esri.layers.MapImageLayer(); nwsRadarLayer.addImage(radarMi); map.addLayer(nwsRadarLayer); }); </script> </head> <body class="claro"> <div id="map"></div> </body> </html>
... View more
01-29-2013
02:01 PM
|
0
|
5
|
2092
|
|
POST
|
Hi Ken, No- this lag occurs at the initial page load. I can still pan/zoom and interact with my other layers; it's just that this one featureLayer won't appear for 4 minutes. After it finally does appear, everything functions normally.
... View more
01-29-2013
12:26 PM
|
0
|
0
|
1496
|
|
POST
|
As an update, my own stripped down test app does not exhibit the lag time behavior I originally described. Looks like I'll need to provide a link to the actual app. I'll do so ASAP, but that probably will be in 2 weeks.
... View more
01-29-2013
09:38 AM
|
0
|
0
|
1496
|
|
POST
|
Hi Kelly, Thanks for replying. I'm hoping to be able to provide a link to the live app within about 2 weeks once we upgrade our production server to 10.1. Regarding your question..I don't know. I've tried some of the ESRI samples that use JSONP and they all seem responsive. I'll have to see if I can create one on my end. I may have something that could fit your description but I'll need to combine bits of code to get a final test. If not, I'll update this thread with the link to my live version once we upgrade our server.
... View more
01-29-2013
08:10 AM
|
0
|
0
|
1496
|
|
POST
|
I've been developing under the 2.8 API and my app has loaded immediately but, under the 3.3 API, it's exhibiting a weird lag time. One of my featureLayers is constructed on the fly using a FeatureCollection. Using some well placed console.log commands, I can see that the code is, in fact, running immediately (including processing the deferred results which are used to construct the featureCollection). The problem is that those features are NOT visible or clickable for another 4 minutes! After that 4 minutes, the features suddenly appear and everything is fine. There's no error to speak of in the console and, again, it runs fine in v2.8 We're using ArcGIS Server 10.1. This app is currently running on an internal, developmental server but I'm hoping to push a public version soon (I have some other issues I need help with). Has anyone else experienced weirdness like this with the 3.3 API? Steve
... View more
01-25-2013
09:50 AM
|
0
|
12
|
2422
|
|
POST
|
ESRI's basemaps use the Web Mercator projection so you'll need to convert the lat/longs using the geographicToWebMercator function.
... View more
01-25-2013
09:14 AM
|
0
|
0
|
631
|
|
POST
|
Try using a function outside of the dojo.connect code block instead of an inline function? Maybe the code is "running over" the deferred part. I've had this happen to me with other aspects of using the javascript API. At any rate, I'm using this technique in the apps I'm working on and it works for me. [EDIT] Noticed that you're using popup templates. My example and my background has been with infoTemplates so I don't know if that's making any difference..
... View more
01-25-2013
08:28 AM
|
0
|
0
|
2493
|
|
POST
|
I'm just wondering out loud here but would "graphic.attributes " also work (where x=column number of desired attribute field)?
... View more
01-25-2013
07:49 AM
|
0
|
0
|
654
|
|
POST
|
It certainly is possible. First, you'll need to define infoTemplates for each feature layer: var template1 = new esri.InfoTemplate();
template1.setContent(SetFeatureLayer1PopupInfo); //call function to set the content
template1.setTitle('Some generic title or another function');
var template2 = new esri.InfoTemplate();
template2.setContent(SetFeatureLayer2PopupInfo); //call function to set the content
template2.setTitle('Some generic title or another function'); Now, when you create your feature layers, you just choose the appropriate infoTemplate and then do the dojo.connect as usual: theFeatureLayer1 = new esri.layers.FeatureLayer("REST Url", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
infoTemplate: template1,
outFields: ["*"],
visible: true
});
theFeatureLayer2 = new esri.layers.FeatureLayer("REST Url", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
infoTemplate: template2,
outFields: ["*"],
visible: true
});
dojo.connect(theFeatureLayer1, "onClick", function(evt) {
var query = new esri.tasks.Query();
query.geometry = pointToExtent(map,evt.mapPoint,10);
var deferred = theFeatureLayer1.selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW);
map.infoWindow.resize(550,350);
map.infoWindow.setFeatures([deferred]);
map.infoWindow.show(evt.mapPoint);
}); Later in your code will be the function to create the popup content: function SetFeatureLayer1PopupInfo(graphic) {
fullAttr = graphic.attributes;
someval = fullAttr.FIELDNAME;
content = '<table><tr><td>Field Name:</td><td>' + someval + '</td><tr></table>';
return content;
}
... View more
01-25-2013
07:39 AM
|
0
|
0
|
2493
|
|
POST
|
Jeff, We just did the registration process with ArcGIS Server like you mentioned and it finally looks like it's updating. Marked as answered. Moderators- Feel free to move this thread as Jeff suggested.
... View more
01-11-2013
12:44 PM
|
0
|
0
|
592
|
|
POST
|
This issue is driving me CRAZY and I'm at a lost to explain it, let alone know how to correct it. I'm developing a web map which will report back stream gage heights. That data is stored natively in an Access database but I have a python script which does a bulk extract every 5 minutes and then transfers the records into a standalone table in SDE. The data has an Epoch timestamp so I can confirm that the data inside the standalone table is current. One of the map requirements was that the gages on our map were symbolized by color based on their current flood stage. To facilitate this, I build the layer on the fly as a FeatureLayer using a FeatureCollection whose source is the standalone table previously mentioned. Last bit of context is that the standalone table is a layer tucked within a published map service with two other point datasets. My system was working fine when we still were running ArcGIS Server 10 but since we upgraded to 10.1, my mapped information is stale. At first, I thought the issue might be that the standalone table consistently has over 2,000 records and the map service had a MaxRecordCount of 1,000. We bumped that up to 5,000 for the map service but the individual layer still shows a MaxRecordCount of 1,000 when viewing its properties in the REST services directory. Through some testing, I think I can say that this is not the problem. I performed a query using "1=1" and it returned the 2,000+ records. So I'm left with a situation where my data is just "stale." I'm not responsible for the installation/maintenance of our ArcGIS Server but the person who is told me that one of the changes from 10 to 10.1 is that Server now pulls data locally onto the server. I'm starting to wonder if my app just keeps pointing back to a cached copy of the table's records?? My app has briefly worked twice under 10.1 and both times were immediately after deleting and re-adding the map service that includes the table. This behavior is what leads me to think that I'm a victim of cached data. How can I remedy this??? The app is still in development and not on the public side of our firewall, unfortunately. Steve
... View more
01-11-2013
08:13 AM
|
0
|
2
|
979
|
|
POST
|
Trying to utilize the TableDataSource but I have no clue what the WorkspaceID is and where it can be found. The help docs don't have much to say about it. I'm trying to access a standalone table located in v10 SDE. Is it simply the name of the SDE database?? Thanks- Steve
... View more
01-10-2013
12:49 PM
|
0
|
2
|
936
|
| 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 |