POST
|
The Javascript API is built with DOJO. If you are using it, you are already using dojo. In my opinion, it is as easy as Jquery. I know this is not the answer you want, but it is the answer. You cannot use the API without using dojo. That said, YOU don't ever have to write dojo. There are samples on using jquery. Thanks a lot,jeff. We have so many JS frameworks to learn, maybe it is ExtJs,Dojo or JSon. so in my opinion, it's really time-consuming to grasp various syntax. I found a link that display some subject about Web ADF Javascript.but they're looks not fully. http://help.arcgis.com/en/sdk/10.0/serveradf_net/conceptualhelp/index.html#/Web_ADF_JavaScript_Library/0002000000z1000000/
... View more
08-08-2013
06:18 PM
|
0
|
0
|
231
|
POST
|
hi,guys,i wanna say the DOJO drove me crazy,actually, I wanna develop a GPS realtime track module, I've already get Map through javascript which using JQUERY. several years ago,we were using ArcIMS to implement tracking functionality with javascipt. but right now i really forgot it, i had partly code like below: any advice will be appreciated,thanks in advance. var trackRealtimeIconUrl = "http://127.0.0.1/vehicle.png";
var carPoint = new ESRI.ADF.Geometries.Point(Gpsinfo.lon,Gpsinfo.lat,spatialReference); //Gpsinfo is an object that including property of GPS terminal.
var carMarkerSymbol = new ESRI.ADF.Graphics.MarkerSymbol(trackRealtimeIconUrl, 22, 21, "pointer");
//i wanna declare PictureMarkerSymbol like this,but its void.
//How shoud i found the reference in this website, and it does not including DOJO.
//var carMarkerSymbol = new ESRI.ADF.Graphics.PictureMarkerSymbol(trackRealtimeIconUrl,22,21,"pointer");
... View more
08-08-2013
12:31 AM
|
0
|
2
|
630
|
POST
|
Hi,guys,so far i have no idea how to get correctly polygon,which convert form OGC object.you know,in the OGC standard,the polygon just have only one exterior ring,but there are multiple rings in ADF object.I had to put the ADF's collection of Rings to OGC's ExteriorRing property.it partly works well,Somehow,i still can't get a correct polygon when the object is a complex polygon. Is there another more appropriate object to replace this? i don't know my description is clear or not?thanks in advance.
for (int i = 0; i < adf_polygon.Rings.Count; i++)
{
//Adding exterior ring into coordinate collection.
foreach (ESRI.ArcGIS.ADF.Web.Geometry.Point exPt in adf_polygon.Rings.Points)
{
exteriorCoords.Add(new Coordinate(exPt.X, exPt.Y));
}
for (int j = 0; j < adf_polygon.Rings.Holes.Count; j++)
{
List<ICoordinate> coords = new List<ICoordinate>();
foreach (ESRI.ArcGIS.ADF.Web.Geometry.Point pt in adf_polygon.Rings.Holes .Points)
{
coords.Add(new Coordinate(pt.X, pt.Y));
}
ILinearRing hole = new LinearRing(coords);
interiorHoles.Add(hole);
}
}
ILinearRing exteriorRing = new LinearRing(exteriorCoords);
ogc_polygon= new Polygon(exteriorRing,interiorHoles);
... View more
04-11-2013
12:08 AM
|
0
|
0
|
2896
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|