|
POST
|
Changed to <!DOCTYPE html> still shows not a valid attribute.
... View more
01-06-2014
08:05 AM
|
0
|
0
|
2685
|
|
POST
|
After my CPU's updating, I re-opened a couple of SL projects developed several months ago. Each pf the projects shows a long error lists. E.g. the "ESRI.ArcGIS.Client does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)". In my References folder, the ESRI.ArcGIS.Client (v4.0.30319) is there, sourced at my projetc's \bin\debug\ folder. I know these errors are Version-related. How can these be fixed? Thanks.
... View more
01-06-2014
02:38 AM
|
0
|
2
|
785
|
|
POST
|
Jon: Got the line drawn but not on DC area, in Potrland, WA. I have to make this correction. Thanks.
... View more
01-03-2014
10:04 AM
|
0
|
0
|
1496
|
|
POST
|
Ideally, I should use HTML5. I need investigate more. Thanks for you to remind me. I have turned he Q as not answered.
... View more
01-03-2014
09:21 AM
|
0
|
0
|
2685
|
|
POST
|
Either 102100 or 26973. Thanks. map = new esri.Map("map", { extent: new esri.geometry.Extent ({ xmin: -8614312, ymin: 4687051, xmax: -8536040, ymax: 4730894, spatialReference: { wkid: 102100} }) }); // 26973 dojo.connect(map, "onLoad", createToolbar); //add the basemap (replace with URL to your own map service) var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"); map.addLayer(basemap);
... View more
01-03-2014
08:42 AM
|
0
|
0
|
1496
|
|
POST
|
The "..." means more data. There are hundreds of pairs. You can eliminate the "..." and test others only. Thank. var polylineJson = { '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 ] ] ] };
... View more
01-03-2014
08:32 AM
|
0
|
0
|
1496
|
|
POST
|
Referring the thread at http://forums.arcgis.com/threads/12911-Warnings-why, I did <%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Namely, change to 4.01. The warning messages were gone. Thanks.
... View more
01-03-2014
08:27 AM
|
0
|
0
|
2685
|
|
POST
|
Data are like that: var polylineJson = { 'paths': [ [ [ 201394.01178484457, 173661.08635829584 ], [ 201392.0117168416, 173661.08690949593 ], [ 201390.01164883861, 173661.08746069603 ], ... ] ] }; Thanks.
... View more
01-03-2014
08:10 AM
|
0
|
0
|
1496
|
|
POST
|
Got several warnings on <button ... > <div ... >, etc., such as: attribute 'data-dojo-type' is not a valid attribute of element 'button' attribute 'data-dojo-props' is not a valid attribute of element 'button' attribute 'data-dojo-type' is not a valid attribute of element 'div' attribute 'data-dojo-props' is not a valid attribute of element 'div' How can those problems be handled? Thanks.
... View more
01-03-2014
08:06 AM
|
0
|
11
|
3895
|
|
POST
|
jonathan: Your code works fine. To apply it in my scenario, in which the data loaded in to the polylineJson are in double. What should be revised on the code (e.g. center - should it be decimals rather than in lat/lon?)? Any advice? Thanks.
... View more
01-03-2014
07:26 AM
|
0
|
0
|
2300
|
|
POST
|
Changed wkid to 102100 but got the same thing. Thanks for your concern.
... View more
01-03-2014
06:53 AM
|
0
|
0
|
2300
|
|
POST
|
See below: function init() { map = new esri.Map("map", { extent: new esri.geometry.Extent ({ xmin: -8614312, ymin: 4687051, xmax: -8536040, ymax: 4730894, spatialReference: { wkid: 26973} }) }); dojo.connect(map, "onLoad", createToolbar); var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"); map.addLayer(basemap); } the map loads the basemap and and basemap displays. At the line map.graphics.add(new esri.Graphic(polyline, polylineSymbol, null, null)); I can view the values like map.graphics[0].extend, .path[0], also the symbol values, .... But it does not show on the map. I am still looking for the possible reasons. Thanks.
... View more
01-03-2014
06:20 AM
|
0
|
0
|
2300
|
|
POST
|
I created a SOE application. Through URL w/ parameters (e.g. like that: http://localhost:6080/arcgis/rest/services/Test/RailLRSDef/MapServer/exts/SOE_LRSSegment/Segment_Operation?LRSSegInput=A1&MeasureInputA=100&MeasureInputB=500&f=pjson), I got the returned results like that (marked as Scenario A): { "Geometry": [ { "paths": [ [ [201394.01178484457, 173661.08635829584 ], ... ] ] } ] } if I load this data as var polylineJson = <above>; var polyline = new esri.geometry.Polyline(polylineJson); The polyline.paths contains nothing. If the data above is changed to (marked as Scenario B) { "paths": [ [ [201394.01178484457, 173661.08635829584 ], ... ] ] } The polyline.paths will be loaded with all of the point values. How can change the data format from Scenario A to Scenario B programally? Thanks.
... View more
01-03-2014
05:21 AM
|
0
|
1
|
876
|
|
POST
|
I tested my 1st JS API application. My code is below: var polylineJson = { 'paths': [ [ [201394.01178484457,173661.08635829584], [201392.0117168416,173661.08690949593], ... ] ] }; var polyline = new esri.geometry.Polyline(polylineJson); var polylineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([46, 139, 87, 1]), 5); map.graphics.add(new esri.Graphic(polyline, polylineSymbol)); But the polyline is not added on the map. What's wrong in the code? Thanks if you can help.
... View more
01-03-2014
05:07 AM
|
0
|
30
|
8082
|
| 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
|