|
POST
|
Once I create the proxy how do I reference and draw this in a javascript app?
... View more
12-14-2017
07:24 AM
|
0
|
3
|
1569
|
|
POST
|
I am looking to leverage this Traffic Service in my javascript app. World traffic | ArcGIS API for JavaScript 3.22 I have an ArcGIS online organization account But my question is can I embed the credentials so I dont have to enter them everytime? Do I need to write my own proxy? Very confused.
... View more
12-14-2017
05:21 AM
|
0
|
5
|
1992
|
|
POST
|
Yea my query attempts are failing now as well....hmmmm.. OK at least I am not going crazy here...lol...Patience I guess
... View more
12-13-2017
08:55 AM
|
0
|
11
|
7691
|
|
POST
|
OK thank you....was confused because I could open the Rest Endpoint in Chrome and query it and return data in the browser
... View more
12-13-2017
08:45 AM
|
0
|
13
|
7691
|
|
POST
|
I am trying to add FEMA map service FEMA: Mapping Information Platform: NOPAGETAB_NFHLWMS Index number 28 from above link. I am doing this: I know there is an scale of 50,000 but no matter my zoom it does not render in my map. I dont see any errors associated with this in the console Thoughts? var FloodZonelayer = new FeatureLayer("https://hazards.fema.gov/gis/nfhl/rest/services/public/NFHL/MapServer/28", {
mode: FeatureLayer.MODE_SNAPSHOT,
visible: true
});
legendLayers.push({ layer: FloodZonelayer, title: 'Flood Zones' });
map.addLayers([FloodZonelayer]);
... View more
12-13-2017
07:56 AM
|
0
|
15
|
9901
|
|
POST
|
Got it...I removed the [ ] at one point on the line: RoadRenderer.setVisualVariables([sizeInfo]); ALL GOOD TO GO....THANK YOU ALL SO MUCH
... View more
12-07-2017
12:18 PM
|
1
|
0
|
2861
|
|
POST
|
OK fixed the road color issue....your code snip had RoadBlack.setRenderer(RoadRenderer); needed to be RoadBlack1 RoadBlack1.setRenderer(RoadRenderer); Now just need to figure out why the roads are not varying widths
... View more
12-07-2017
12:16 PM
|
0
|
1
|
2861
|
|
POST
|
This is what I have.... No matter what I change the RoadColor to it still comes up green (in the example the Hex color is red) The LabelClass for the Roads work Fine I even changed the road width on the SizeInfo to 40 and all the roads are the same width var RoadEndPoint1 = "https://xxxxx/FeatureServer/11";
var RoadBlack1 = new FeatureLayer(RoadEndPoint1, {
mode: FeatureLayer.MODE_ONDEMAND,
id: "Roads1",
minScale: 50000,
visible: false,
outFields: ["STREET_NAME_FULL", "SPEED"]
});
// Push layer to the legend
legendLayers.push({ layer: RoadBlack1, title: 'Roads Centerline 2' });
//Create a new Label Class for the Street Labels
var labelClass1 = new LabelClass({
labelExpressionInfo: {"value": "{STREET_NAME_FULL}"},
symbol: {
"type": "esriTS",
"color": [255,255,255],
"haloColor": [0,0,0],
"haloSize": "1.25",
"verticalAlignment": "middle",
"horizontalAlignment": "center",
"yoffset": "0",
"font": {
"family": "Arial",
"size": "12px",
"weight": "BOLDER"
}
}
});
//Apply the labelingInfo to the States feature layer and add to the map
RoadBlack1.setLabelingInfo([ labelClass1 ]);
var RoadColor = new Color("#FF0000");
var RoadSymbol = new SimpleLineSymbol("solid", RoadColor, 1.5);
var RoadRenderer = new SimpleRenderer(RoadSymbol);
//Assign parameters for road width by SPEED
var sizeInfo = {
type: "sizeInfo", // type must be specified otherwise the renderer doesn't know which visual variable type it is
field:"SPEED",
minSize: 0.2,
maxSize: 40,
minDataValue: 0,
maxDataValue: 70
};
RoadRenderer.setVisualVariables(sizeInfo);
RoadBlack.setRenderer(RoadRenderer);
... View more
12-07-2017
12:13 PM
|
0
|
3
|
2861
|
|
POST
|
Thank you both for your thoughts and help...yea I was confusing myself there...lol....thanks Gonna test this out and will get back with ya
... View more
12-07-2017
11:56 AM
|
0
|
4
|
2861
|
|
POST
|
I have two renders that I am using to render my Streets. They both work independently but lost on how to get them into the same renderer...because If I try and use them independently it cancels one out. 1st RENDERER var RoadColor1 = new Color("#eae5e5");
var RoadLine1 = new SimpleLineSymbol("solid", RoadColor1, 1.5);
var RoadSymbol1 = new SimpleFillSymbol("solid", RoadLine1, null);
var RoadRenderer1 = new SimpleRenderer(RoadSymbol1);
RoadBlack1.setRenderer(RoadRenderer1);
2nd RENDERER //Assign parameters for road width by SPEED
var sizeInfo = {
field:"SPEED",
minSize:.2,
maxSize:10,
minDataValue:0,
maxDataValue:70
};
RoadBlack1.renderer.setSizeInfo(sizeInfo); How can I combine them so they both work?
... View more
12-07-2017
11:14 AM
|
0
|
9
|
3056
|
|
POST
|
Thanks for all your help guys...very appreciated. Dont code much and always hard getting on the bike again, little wobbly at first...
... View more
12-04-2017
06:34 AM
|
0
|
0
|
413
|
|
POST
|
Thanks guys for your input...just a note I am testing on Chrome I see where I was incorrect on the Halo Size...I was using "3px" not "3". Was confused here because the Size uses "px" to denote the pixel size...thought the halo size was the same. Very stupid if you ask me. If talking size stick to one or the other, px or no px. LAST QUESTION: I added weight property and again nothing happened...this is a property of FONT as I see the documentation reading. var labelClass = new LabelClass({
labelExpressionInfo: {"value": "{STREET_NAME}"},
symbol: {
"type": "esriTS",
"color": [0,0,0],
"haloColor": [255,255,255],
"haloSize": "1",
"verticalAlignment": "middle",
"horizontalAlignment": "center",
"font": {
"family": "Arial",
"size": "10px",
"weight": "WEIGHT_BOLDER"
}
}
});
... View more
12-04-2017
05:49 AM
|
0
|
1
|
2539
|
|
POST
|
why doesnt the Halo work then? Confused...you see my image above?
... View more
12-01-2017
02:07 PM
|
0
|
1
|
2539
|
|
POST
|
Looking here...LabelClass | API Reference | ArcGIS API for JavaScript 3.22 But was somewhere else where It had info on Vertical and Horizontal properties. The above location dosent mention these... Where is a list of all the properties I can set? Info seems to scattered all over the API website
... View more
12-01-2017
01:57 PM
|
0
|
3
|
2539
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2018 11:09 AM | |
| 1 | 09-10-2018 06:26 AM | |
| 1 | 09-15-2022 11:02 AM | |
| 1 | 05-21-2021 07:35 AM | |
| 1 | 08-09-2022 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-19-2022
09:23 PM
|