POST
|
Thank you for the suggestion. I'm afraid the behavior is the same. In my code:
map = new esri.Map("map");
var layer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
map.addLayer(layer);
var initialExtent = new esri.geometry.Extent({
"xmin":-8673921.42,
"ymin":4654250.49,
"xmax":-8536334.77,
"ymax":4745974.92,
"spatialReference":{"wkid":102100}});
map.setExtent(initialExtent);
...
var params = new esri.tasks.BufferParameters();
params.geometries = [ evt.mapPoint ];
params.distances = [ 1 ];
params.unit = esri.tasks.GeometryService.UNIT_STATUTE_MILE;
params.outSpatialReference = new esri.SpatialReference({wkid : 102100});
params.bufferSpatialReference = new esri.SpatialReference({wkid : 102100});
... View more
01-31-2012
07:52 AM
|
0
|
0
|
573
|
POST
|
I am experiencing the same problem. Using the BufferParameters with the public geometry service in both spatial reference 4326 and 102100 the radius of the circle appears to be too small. Using venkatap's example code below, when I place a circle with radius of 1 mile on the intersection of Chainbridge Rd and Old Courthosue Rd in Tysons Corner, VA the circle edge runs directly through the intersection of International Drive and Westpark Drive. [ATTACH=CONFIG]11559[/ATTACH] However, when I measure the distance between these two intersections in Google Earth, I get 0.78 miles. What am I not understanding? [ATTACH=CONFIG]11560[/ATTACH] Many thanks in advance, Dave
... View more
01-31-2012
05:41 AM
|
0
|
0
|
573
|
POST
|
Thanks for the quick reply. This is going to be deployed behind a firewall, so is there a JSON or XML format I could supply to the Javascript API directly? Making JSON is just as easy for us as KML, we'd just like to make the interaction between the client-side Javascript map and the 3rd party web services to be as simple as possible. Otherwise I guess I can do it purely in Javscript like http://forums.arcgis.com/threads/41640-Programmatically-adding-multiple-points-to-the-map , but then I'd have to learn how to get description bubbles, etc working. Many thanks again
... View more
10-19-2011
09:27 AM
|
0
|
0
|
860
|
POST
|
I am attempting to use ArcGIS API for Javascript to view KML from a dynamic REST webservice of a 3rd party app server that I control. To test this I have downloaded the html source for the KMLLayer example and am modifying the kmlUrl variable to hit my service. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/layers_kml.html var kmlUrl = 'http://localhost:6040/service/query/etc/1.kml'; var kml = new esri.layers.KMLLayer(kmlUrl); map.addLayer(kml); The data does not appear. However, if I download the URL to a static KML file and upload that to a public file webhosting (in this case my public DropBox) and then adjust the code to pull from the static URL hosting location, it works just fine. Could the localhost or high number port be causing the problem? Could any HTTP response headers mess up the KMLLayer constructor? The webserver is setting the content type to "application/vnd.google-earth.kml+xml", which I believe is correct. Thanks in advance for help, Dave
... View more
10-19-2011
08:25 AM
|
0
|
8
|
5526
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|