POST
|
How to convert ArcGIS Javascript Geometry Object to GeoJson?
... View more
03-19-2012
06:21 AM
|
0
|
4
|
2959
|
POST
|
I am trying to send Javascript api Geometry JSON to Asp.net Handler using Jquery Ajax Submit.But i am getting javascript error while posting GEOMETRY JSON. Here is my code i am trying.
var jsondata = dojo.toJson(geometry.toJson());
$('#ajax-button').click(function () {
$('#frmUpload').ajaxSubmit({
data: jsondata,
contentType: "application/json; charset=utf-8",
dataType: 'json',
success: function (r) {
$('#ajax-results').html(r);
$('input:file').MultiFile('reset');
}
});
});
If i pass the geometry like below it works fine.
var jsondata = dojo.toJson(geometry.toJson());
$('#ajax-button').click(function () {
$('#frmUpload').ajaxSubmit({
data: ' {"x":-10753913.140888039,"y":4632637.5074609965,"spatialReference":{"wkid":102100}}',
contentType: "application/json; charset=utf-8",
dataType: 'json',
success: function (r) {
$('#ajax-results').html(r);
$('input:file').MultiFile('reset');
}
});
});
Please help me how to send the Geometry JSON to server like this
dojo.toJson(geometry.toJson())
... View more
03-18-2012
10:30 PM
|
0
|
1
|
652
|
POST
|
I have Geometry Data in SQL SERVER 2008 R2. I want to load that Geometry using ArcGIS Javascript Api. Please provide me a sample.
... View more
03-01-2012
12:04 AM
|
0
|
1
|
423
|
POST
|
it should just be <script type="text/javascript" src="http://localhost/myapplication/scripts/arcgis_js_api/library/2.6/jsapi/?v=2.6compact�?� > unless you changed the folder structure I followed the same procedure mentioned in Install.html of JSAPI downloaded.There it is mentioned to access the JSAPI like this http://<myserver>/arcgis_js_api/library/2.5/arcgis/. Even i configure the Default.ashx as default document in IIS.I am not able to access like above url. So i direclty call Default.ashx like this http://<myserver>/arcgis_js_api/library/2.5/arcgis_compact/default.ashx. Basic viewer is not working for this configuration. But I am able use the samples which is arcgis.com http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm help for JSAPI instead of using Basic Viewer. So now i got the javascript file (arcgis.js) from this live url "http://serverapi.arcgisonline.com/js.../?v=2.6compact" and save it my application folder. Now i am using like this <script type="text/javascript" src="http://localhost/myapplication/scripts/arcgis.js�?� >. It is working fine. But i know how to configure the local JSAPI for Basic Viewer without using this <script type="text/javascript" src="http://localhost/myapplication/scripts/arcgis.js�?� > I would like to use like this <script type="text/javascript" src="http://localhost/myapplication/scripts/arcgis_js_api/library/jsapicompact/default.ashx�?� > Note: I can able to browse http://localhost/myapplication/scripts/arcgis_js_api/library/jsapicompact/default.ashx in IE.No error.It downloads script partially loaded in browser,but not as file. But when i use live http://serverapi.arcgisonline.com/js.../?v=2.6compact,this returns script as file.
... View more
01-03-2012
10:38 PM
|
0
|
0
|
240
|
POST
|
I am explaining here the issue in more detail I have an Asp.Net MVC Application. There I am trying to integrate the ArcGIS JavaScript Basic Viewer. I already configured the ArcGIS Javascript API 2.6 in my Asp.Net application as below here [ATTACH]10821[/ATTACH] I have Default.ashx inside jsapicompact folder as mentioned in install.htm of ArcGIS Javascript Api downloaded content. I am using this script reference. <script type="text/javascript" src="http://localhost/myapplication/scripts/arcgis_js_api/library/jsapicompact/default.ashx�?� > Instead of <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6compact"> Here is my dojoConfig var djConfig = { parseOnLoad: true, locale:"en-us", baseUrl: './', modulePaths: { "esriTemplate": "../../../Modules/ArcGISMaps/Scripts" } }; The problem is I am not able to make Basic Viewer to work with local ArcGIS Javascript Api. I am getting some error in loading dojo scripts and ArcGIS javascript Api Scripts. Please help me how to configure the basic viewer with local ArcGIS Javascript Api (http://localhost/myapplication/scripts/arcgis_js_api/library/jsapicompact/default.ashx) Instead of Online api (http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6compact)
... View more
12-28-2011
01:47 AM
|
0
|
0
|
240
|
POST
|
I have downloaded the basic viewer template and i need to have this basic viewer inside my existing asp.net application as one of the page.I already configure the javascript api 2.6 in my web application locally,caz i am going to publish my web application in some other server with javascript api,so i didnt configure the api directly in wwwroot of iis. My question is I need to point my local javascript api in basic viewer template with all contents (nls folder,javascript folder etc which is all inside basic viewer folder). Please provide me a sample.
... View more
12-23-2011
05:00 AM
|
0
|
3
|
1426
|
POST
|
I need to refer my local javascript api for this basic viewer. But i m getting error while executing this line dojo.requireLocalization("esriTemplate","template"); How to configure the Basic Viewer with local arcgis javascripr api in my web server.
... View more
12-22-2011
01:57 AM
|
0
|
0
|
592
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|