|
POST
|
are your services and/or app public? how badly are the layers misaligned? are you saying that both the cached basemap and dynamic map service are published in web mercator, and that your dynamic map service layers only become misaligned in that particular app? i have a couple different suggestions. 1. compare the exportMap requests and responses for the problematic layer between the JavaScript Viewer and the Campus Viewer application to see if anything relevant seems different. 2. try defining a datum transformation between NAD83 and WGS84 in your map document prior to republishing the service.
... View more
11-14-2013
10:45 AM
|
0
|
0
|
4316
|
|
POST
|
ahh! thanks for clarifying 🙂 if thats the case, the same misalignment should appear in the REST service's JavaScript Viewer and even in the map document used to publish the service. can you confirm whether or not that is the case and check the coordinate system of the actual data?
... View more
11-14-2013
10:05 AM
|
0
|
0
|
4316
|
|
POST
|
how could you judge alignment until you were overlaying two different services? i could be wrong, but i doubt that version compatibility is the problem here.
... View more
11-14-2013
09:58 AM
|
0
|
0
|
4316
|
|
POST
|
Sachin, since both these coordinate systems reference the same underlying datum, no shift should be expected. i'm not positive, but i have a hunch that at least one of the datasets in the map service which is reprojecting on the fly actually has its own differing coordinate system with different underlying datum and that no datum transformation to WGS84 was defined in the map document prior to publishing.
... View more
11-14-2013
08:54 AM
|
0
|
0
|
4316
|
|
POST
|
hi AJ111, welcome to the forums! i did a quick check and confirmed in the API reference that the infoWindow class doesn't have a 'mouse-out' event, but rather only 'show' and 'hide'. this explains why you are having trouble wiring it up.
... View more
11-14-2013
08:12 AM
|
0
|
0
|
1458
|
|
POST
|
what are the coordinate systems (and more importantly underlying datums) of the two services?
... View more
11-14-2013
08:08 AM
|
0
|
0
|
4316
|
|
POST
|
i have to confess i don't quite understand the code flow, but you should be able to call map.addLayers() as the last line within your existing QueryTask callback.
queryTaskDocs.execute(queryDocs,function(results){
//...
dijit.byId("docSelect").set("store", store1);
map.addLayers([featurePoints, featureRoutes, featureAreas]));
});
//no need for this anymore
//dojo.connect(queryTaskDocs, "onComplete", map.addLayers([featurePoints, featureRoutes, featureAreas]));
if not, please layout the entire sequence of asynchronous calls being made and their dependencies and i should be able to walk you through using existing events to control the timing.
... View more
11-12-2013
12:29 PM
|
0
|
0
|
2569
|
|
POST
|
why not just name the function you want to call using a QueryTask event like 'complete'? ie: myQuery.on('complete', initEditor);
... View more
11-12-2013
06:34 AM
|
0
|
0
|
2569
|
|
POST
|
what version/service pack for ArcGIS Server are you running?
... View more
11-12-2013
05:12 AM
|
0
|
0
|
2396
|
|
POST
|
as long as the graphic geometry type matches what is published in your feature service you can call featureLayer.applyEdits() and pass it in within the 'adds' parameter. check out this sample for an example of the method in action.
... View more
11-12-2013
05:09 AM
|
0
|
0
|
1561
|
|
POST
|
sounds good. you can pass a query which filters both based on a SQL expression and spatial relationship to FeatureLayer.queryFeatures(query) by setting query.geometry as well as query.where
... View more
11-06-2013
02:53 PM
|
0
|
0
|
2012
|
|
POST
|
what is the benefit of using QueryTask in this case? (in other words, why not just fire the SQL query against the FeatureLayer directly?)
... View more
11-06-2013
09:17 AM
|
0
|
0
|
2012
|
|
POST
|
welcome to our forum! how did you get a reference to the polygon geometry object in question? from another query? in general, if you need to validate/correct a geometry object, you can use the simplify method of a geometry service, but i'd definitely be curious to know what returned the problematic geometry to you in the first place. a simplified app or code snippet (wrapped in code tags) would also be helpful.
... View more
11-06-2013
06:30 AM
|
0
|
0
|
2012
|
|
POST
|
glad to hear it Saqib. please consider marking this thread as 'answered'.
... View more
11-06-2013
05:50 AM
|
0
|
0
|
6320
|
|
POST
|
@sadiq, the url i referenced was a hypothetical example based on the location of the proxy.ashx file on my own machine. the error you are seeing is proof that yours is stored somewhere else. @don, it could be any number of things. if you know for a fact that you can log onto the web server with your own credentials and view the page in question in the browser, you might try creating a new application pool in IIS and set its identity to be you instead of the generic IIS User. doing this has two benefits: 1. your permissions may be greater, allowing the proxy to function (and giving your IT a clearer picture of what to modify) 2. if the proxy still doesn't work, you can launch fiddler as the same user and see the actual request that the proxy is making for the resource in question.
... View more
11-05-2013
01:50 PM
|
0
|
0
|
2644
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|