|
POST
|
Jon: Attached below is the script that was sourced from you but I had minor change. I remember that it worked as adding var polylineJson2 = { 'paths': [ [ [201394.01178484457,173661.08635829584], ...], "spatialReference":{"wkid":102100} } //(or wkid=4326) But now, it losses its function by adding this polyline. If you have time, could you take a look. Great appreciation! <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <title>Build your first application</title> <link rel="stylesheet" type="text/css" href="http://js.arcgis.com/3.8/js/esri/css/esri.css"> <style type="text/css"> html, body, #map { padding: 0; margin: 0; height: 100%; } </style> <script src="http://js.arcgis.com/3.8/"></script> <script> var map; require(["esri/map", "dojo/ready", "dojo/on", "esri/geometry/Polyline", "esri/graphic", "esri/symbols/SimpleLineSymbol", "dojo/domReady!"], function(Map, ready, on, Polyline, Graphic, SimpleLineSymbol) { var map = new Map("map", { center: [-77.1, 38.9], //longitude, latitude zoom: 11, basemap: "streets", slider: true, //default sliderPosition: "top-left" //default }); ready(function (){ on(map, "load", drawPath); function drawPath(){ var polylineSymbol = new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 3); var polylineJson = { "paths":[[[-122.68,45.53], [-122.58,45.55], [-122.57,45.58],[-122.53,45.6]]], "spatialReference":{"wkid":4326}}; var polyline = new Polyline(polylineJson); var g = new Graphic(polyline, polylineSymbol, null, null); map.graphics.add(g); var polylineJson2 = { "paths":[[[201394.01178484457,173661.08635829584],[201392.0117168416,173661.08690949593],[ 201388.01158083565, 173661.08801189612 ],[ 201386.01151283266, 173661.08856309619 ],[ 201384.0114448297, 173661.08911429628 ],[ 201382.0113768267, 173661.08966549637 ],[ 201380.01130882374, 173661.09021669647 ],[ 201378.01124082075, 173661.09076789653 ] ] ],"spatialReference":{"wkid":102100} }; var polyline2 = new Polyline(polylineJson2); var g2 = new Graphic(polyline2, polylineSymbol, null, null); map.graphics.add(g2); } }); }); </script> </head> <body class="claro"> <div id="map"></div> </body> </html>
... View more
01-10-2014
03:06 AM
|
0
|
0
|
1496
|
|
POST
|
Prob. solved by installing SL 5 SDK (see http://forums.arcgis.com/threads/100294-SL-5-in-VS-2010-Ultimate).
... View more
01-10-2014
02:48 AM
|
0
|
0
|
565
|
|
POST
|
Prob. solved by installing SL 5 SDK. It means SL 5 SDK is applicable in VS 2010.
... View more
01-10-2014
02:13 AM
|
0
|
0
|
599
|
|
POST
|
I got a lot problem using VS 2010 to compile SL 4 GIS project. I did tried to use SL 5, but it causes the problem to load the Web project. If you have experience using SL 5 in VS 2010, would you post here. Thanks in advance.
... View more
01-09-2014
09:15 AM
|
0
|
1
|
933
|
|
POST
|
SharpGIS: I got this problem also. In my new CPU, the previous compiled SL 4 projects in VS 2010 crash and got several dozens of errors. I have also realized that it would be version conflict issue. I tried remove some dlls and then added again, but no help at all. Could you provide your advice how to handle it? Thanks.
... View more
01-08-2014
10:30 AM
|
0
|
0
|
1180
|
|
POST
|
I have verified the returned data from SOE through JSon validator at http://jsonlint.com/. The returned values are valid. So, I will close this thread.
... View more
01-08-2014
07:56 AM
|
0
|
0
|
602
|
|
POST
|
From http://stackoverflow.com/questions/5402774/cannot-install-silverlight-4-tools-on-visual-studio-2010-sp1, "The VS 2010 Service Pack 1 has SilverLight Toolkit install as default. You don't need to install the SilverLight tool anymore."
... View more
01-08-2014
04:17 AM
|
0
|
0
|
913
|
|
POST
|
Melita: Actually, I need to the calculation formula or component for this conversion for dynamically converting some individual points. Do you have any idea how to get it? Thanks.
... View more
01-08-2014
02:54 AM
|
0
|
0
|
1298
|
|
POST
|
Thanks for your response. Could you provide the details for the sources?
... View more
01-07-2014
10:48 AM
|
0
|
0
|
1298
|
|
POST
|
For some reason, I have to run SL 4 projects. However, I receive a ton of compiling errors. Then I tried to re-install all of the SW needed for SL API project by referring to http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Installation/016600000005000000/. I repaired VS 2010 and VS 2010 SP1. Then I tried to install Silverlight 4 Tools for Visual Studio but got failure. The error message is: Installation Requirements: Visual Studio 2010 or Visual Web Developer Express 2010 or Visual Phone Developer Express 2010 that matches the language version of Silverlight Tools 4 must be installed before installation of Silverlight Tools can continue. Silverlight Tools is available in other languages at <A HREF="http://go.microsoft.com/fwlink/?LinkId=177432">http://go.microsoft.com/fwlink/?LinkId=177432</A>. Since I did have installed VS 2010, I don't know what measure I should take next. I wish ESRI SL Team or some experienced professionals can provide some help. Thanks. By the way, got another Q here. From the API: Silverlight Version 4 is supported: Silverlight 4 Tools for Visual Studio (add-on required if using Visual Studio 2010 without SP1) Since I installed SP1, is the SL 4 Tools still required?
... View more
01-07-2014
10:45 AM
|
0
|
1
|
1693
|
|
POST
|
I am Looking for arcobjects component for NAD_1983_To_WGS_1984_1 conversion. If you know the resource, please help. Thanks.
... View more
01-07-2014
09:12 AM
|
0
|
5
|
1542
|
|
POST
|
From http://support.microsoft.com/kb/2516078, it mentions: The sum of the following two path length is exactly added up to 259 characters (= MAX_PATH �?? 1) 1) The path of a referencing project�??s directory. 2) The relative path to a referenced project from the current directory (= a referencing project�??s directory). Does anyone know how to detect and then fix it? Thanks.
... View more
01-07-2014
08:44 AM
|
0
|
0
|
565
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-18-2023 10:02 AM | |
| 3 | 07-14-2023 12:29 PM | |
| 1 | 04-02-2021 12:16 PM | |
| 1 | 07-24-2017 11:31 AM | |
| 1 | 04-04-2016 03:59 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-01-2025
11:58 AM
|