POST
|
Hi, I have some coordinates for my points which are made for the projection "lambert 2 extend" or if you prefer "Lambert II étendue" in french. I am sure about my points. I found on internet that iD of this system of projection is n°102582 but when I use that :
var myLine ={geometry:{"paths":[[[412278.09,2205649.06],[451167.6,2179520.6]]],
"spatialReference":{"wkid": 102582}},
"symbol":{"color":[0,0,0,255],"width":1,"type":"esriSLS","style":"esriSLSSolid"}};
my line is in Africa, not realy in France as i would want to have ! Someone have an idea for my little problem of localisation ? Please,
... View more
07-02-2014
11:28 PM
|
0
|
1
|
583
|
POST
|
Hi everybody, As i just begin in the fabulous world of SIG, I have some problems to perform some tasks on my map. After working on points (it works XD) i want to draw and display some lines. How can i do it ? Should i use SVG ? Because just here (https://developers.arcgis.com/javascript/jssamples/graphics_svg_path.html) i see we can use SVG to create some awesome Symbol but i don't find how to create a line ? Please, if you have a tuto o an id ea, can you help me ? Thank you for you help and have a nice day, Sincerely, Enoa
... View more
07-02-2014
08:20 AM
|
0
|
0
|
314
|
POST
|
hi, I find a solution :
var countryLayer = new GraphicsLayer();
var myLine ={geometry:{"paths":[[[4.0264,48.09885],[0.223,46.085]]],
"spatialReference":{"wkid":4326}},
"symbol":{"color":[0,0,0,255],"width":1,"type":"esriSLS","style":"esriSLSSolid"}};
var gra= new Graphic(myLine);
countryLayer.add(gra);
map.addLayer(countryLayer);
by 🙂
... View more
07-02-2014
08:17 AM
|
0
|
0
|
314
|
POST
|
Hi, I try this thing :
var myLine ={geometry:{"paths":[[[4.0264,48.09885],[0.223,46.085]]],
"spatialReference":{"wkid":4326}},
"symbol":{"color":[0,0,0,255],"width":1,"type":"esriSLS","style":"esriSLSSolid"}};
var graphic= new Graphic(myLine);
Up to now, it seems to be Ok, but when I add :
map.graphics.add(graphic);
The model doesn't work ! Do you know what is the problem ? Thanks !
... View more
07-01-2014
07:23 AM
|
0
|
0
|
314
|
POST
|
Shame on me ! O_o I had to read more before to ask my questions. => SimpleLinesSymbol() Thanks
... View more
07-01-2014
12:18 AM
|
0
|
0
|
314
|
POST
|
Hi everybody, As i just begin in the fabulous world of SIG, I have some problems to perform some tasks on my map. After working on points (it works XD) i want to draw and display some lines. How can i do it ? Should i use SVG ? Because just here (https://developers.arcgis.com/javascript/jssamples/graphics_svg_path.html) i see we can use SVG to create some awesome Symbol but i don't find how to create a line ? Please, if you have a tuto o an idea, can you help me ? Thank you for you help and have a nice day, Sincerely, Enoa
... View more
06-29-2014
11:46 PM
|
0
|
5
|
642
|
POST
|
Maybe should I use : https://developers.arcgis.com/javascript/jssamples/exp_cors_edit_points.html but when I try I have nothing 😕
... View more
06-20-2014
06:34 AM
|
0
|
0
|
228
|
POST
|
Yes you're right O_o => Of course it wanted to write "http://localhost... and not www.localhost... 😉 I still searching. Thanks you for your help. If I find a solution, I will come back ! Enoa
... View more
06-20-2014
06:05 AM
|
0
|
0
|
228
|
POST
|
Hi Guys, I work on a local server Apache Tomcat. I make a script to display a map and i can see it when i type in my browsers : www.localhost:8080/myMap.html but when i try to type www.myIpAdress:8080/myMap.html i have text but not the map. I ask myself if it's a problem of proxy , But i am not really sure ! And you what do you think ? I try to use a proxy but as i am not really an informatician, i don' really understand how it works. Thanks, Enoa
... View more
06-18-2014
01:36 AM
|
0
|
3
|
618
|
POST
|
Hi everybody, Sorry if i make mistakes when i write, i am french 😉 I am working on a map with the JS API. My aim it's to display a layer which came from a .CSV file (loaded from my local server) :
csv = new CSVLayer("myPath/myFile.csv", {
copyright: "myFile.copyright",
...
});
map.addLayer(csv);
Up to now, i have no problems, it works ! In my .csv, i have three fields : X, Y and TYPE separated by comas In TYPE their are only two possibilities : validate, not_validate. I want to change the symbol's color when the point is validate (red) and when the point is not (blue). Is there anyway to do that ? I tried many methods without any results ! Partuclarly, il look the method .addBreak but when i wrotte :
var renderer = new ClassBreaksRenderer(defaultSymbol,"TYPE")
or
var renderer = new ClassBreaksRenderer(defaultSymbol, function(feature){
return feature.attributes.STATUT;
});
Neither of these méthods work ! I think their is a problem with Type What can i do ? Thank you for your help 😉 Enoa
... View more
06-17-2014
09:42 AM
|
0
|
0
|
521
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|