POST
|
Hi, I will be using an ESRI map API component done by Singapore developers, OneMap API (http://www.onemap.sg/API/Help/). Majority of the controls in ESRI example cant work with OneMap API.. I had used the one of the method in ArcGIS website, which is here. I need to use my converted SVY21 (WKID = 3414) values to pinpoint on OneMap API. I used the website mentioned above, Under Create a point and specify an infoTemplate, to pinpoint but it wouldn't show any points. Anyone help? From Under Create a point and specify an infoTemplate <- to pinpoint a location var myPoint = {"geometry":{"x":-29535.0995308659,"y":28912.1833258747, <- 29535.0995308659,28912.1833258747 as it's wkid:3414 "spatialReference":{"wkid":3414}},"attributes":{"XCoord":-104.4140625, <- 3414 as its singapore's wkid "YCoord":69.2578125,"Plant":"Mesa Mint"},"symbol":{"color":[255,0,0,128], "size":12,"angle":0,"xoffset":0,"yoffset":0,"type":"esriSMS", "style":"esriSMSSquare","outline":{"color":[0,0,0,255],"width":1, "type":"esriSLS","style":"esriSLSSolid"}}, "infoTemplate":{"title":"Vernal Pool Locations","content":"Latitude: ${YCoord} <br/> Longitude: ${XCoord} <br/> Plant Name:${Plant}"}}; var gra= new esri.Graphic(myPoint);
... View more
04-17-2011
11:11 PM
|
0
|
0
|
953
|
POST
|
Nothing I said is really specific to ESRI classes or concepts. This is basic .NET stuff. Download the codeplex source code and put it into a project, then step through the calls to see how it works. I wouldn't want to rob you of the learning process by just pasting some code here for you to copy. okay, i just got it, thanks a lot 🙂
... View more
04-03-2011
04:49 PM
|
0
|
0
|
1775
|
POST
|
You need to start with the source code for the KMLLayer classes mentioned above (get the bits from codeplex). Then modify the constructor and initializer code to accept a stream or byte array as a source input (instead of setting source URI). Find the place in there where the webclient_downloadcomplete routine hands off the stream to the kml parser and plug in your source data there. The rest should work as-is. hmm danwallie, any codes for me to reference? I'm new for ESRI and I urgently need these code for my final year project.. 😞
... View more
04-03-2011
07:58 AM
|
0
|
0
|
1775
|
POST
|
Is this what you were looking for? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#KmlLayerSimple hi thanks for the reply! But i am looking something that it can be using KML file(s) directly from the working directory instead of web services (i couldnt publish kml file as a webservice; nor could'nt use ArcGIS Server as well) at this line: <esri:KmlLayer ID="KmlLayer" Url="http://kml-samples.googlecode.com/svn/trunk/KML_Samples.kml" ProxyUrl="http://serverapps.esri.com/SilverlightDemos/ProxyPage/proxy.ashx" /> Looking forward for people to find solution(s) of what i currently has, thanks.
... View more
04-02-2011
09:37 AM
|
0
|
0
|
1775
|
POST
|
Hi forumers, may i know to add a kml/ kmz/ mxd file into visual studio ( silverlight 4 in C# )? I couldnt use ArcGIS server to upload a map as a webservice and use it as a layer in my project. Anyone knows please help 🙂
... View more
03-31-2011
05:43 PM
|
0
|
13
|
9092
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|