|
POST
|
Hi Sarah This is how got the layer to load and display: var resourceInfo = {
extent: new Extent(-180, -90, 180, 90, {
wkid: 4326
}),
layerInfos: [
new WMSLayerInfo({
name: 'Alaska_IFSAR',
title: 'Alaska_IFSAR'
}),
new WMSLayerInfo({
name: 'Colorado',
title: 'Colorado'
}),
new WMSLayerInfo({
name: 'Florida_Mosaic',
title: 'Florida_Mosaic'
})
]
};
wmsLayer = new WMSLayer('http://demo.lizardtech.com/lizardtech/iserv/ows', {
resourceInfo: resourceInfo,
visibleLayers: ['Florida_Mosaic']
});
wmsLayer.version = '1.1.1';
wmsLayer.spatialReferences[0] = 3857;
map.addLayer(wmsLayer); It seems like the "version" parameter does not apply immediately during layer construction, but setting it afterwards solves it. The version is obviously important for the bbox parameter format and SRS (CRS for 1.3.0)
... View more
05-16-2017
03:31 AM
|
0
|
1
|
1805
|
|
POST
|
If your shapefile has more than 1000 features it won't work. Your shapefile contains 3771 features.
... View more
05-12-2017
12:38 AM
|
1
|
1
|
2010
|
|
POST
|
The Map object has a reorder method with which you can specify the layer index: Map | API Reference | ArcGIS API for JavaScript 4.3 You can also specify the layer index when adding the layer.
... View more
05-11-2017
11:05 PM
|
3
|
2
|
2340
|
|
POST
|
Thanks Harsh, that's a very nice sample. For my purpose though I want to make use of the WCSLayer's identify method. Are there any examples of using the identify method?
... View more
05-11-2017
11:02 PM
|
0
|
0
|
1186
|
|
POST
|
Well, what what web server are you running? You could probably find the procedure for setting the allowed MIME types through an online search. I'm not saying that is definitely the issue here, so maybe you can show some code?
... View more
05-11-2017
02:48 AM
|
0
|
0
|
2000
|
|
POST
|
Did you validate the JSON to check it is correct? And is you Web Server configured to serve JSON MIME types?
... View more
05-11-2017
01:07 AM
|
0
|
0
|
2000
|
|
POST
|
I'm trying to use the identify method for the WCS layer in the 3.20 API. WCSLayer | API Reference | ArcGIS API for JavaScript 3.20 Can anyone provide me with a working example of how it is used correctly?
... View more
05-11-2017
12:35 AM
|
0
|
3
|
1652
|
|
POST
|
You can try to rename the service through the ArcGIS Server Administrator API: ArcGIS Server Administrator API
... View more
05-02-2017
11:01 PM
|
0
|
1
|
3393
|
|
POST
|
Switch on the Advanced Editing toolbar and use the Explode tool on the multipart polygon. Separating a multipart feature (Explode)—Help | ArcGIS for Desktop
... View more
04-25-2017
04:54 AM
|
1
|
1
|
1784
|
|
POST
|
The problem is that the content for the attribution element is converted to HTML special characters, whereas to have working hyperlinks you need the actual <a></a> tag. What I quickly tried was a simple conversion from HTML special characters to text: // get attribution div
attrdiv = document.getElementsByClassName('esri-attribution__sources')[0]
// convert formatted HTML content to text
attrdiv.innerHTML = attrdiv.innerText This should be done after the layers have been loaded and the attribution set.
... View more
04-24-2017
11:22 PM
|
1
|
1
|
6094
|
|
POST
|
I agree with Thomas - try removing the infoTemplate with the setRequestPreCallback function.
... View more
04-24-2017
06:27 AM
|
1
|
0
|
3857
|
|
POST
|
See this post: https://community.esri.com/message/667273-re-how-can-i-attach-mouse-over-to-graphiclayer-in-arcgis-api-for-javascrip42?comm…
... View more
04-13-2017
01:57 AM
|
0
|
0
|
4115
|
|
POST
|
For 3.20 see the Polygon constructors: Polygon | API Reference | ArcGIS API for JavaScript 3.20 Then to add it as a graphic to the map: var polygonJson = {"rings":[[[2.43,53.432],[3.2342, 54.234],[2.84, 54.01],[2.5401, 53.64]]],"spatialReference":{"wkid":4326 }};
var poly = new Polygon(polygonJson);
var fs = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,
new Color([255,0,0]), 2),
new Color([255,255,0,0.6])
);
map.graphics.add(new Graphic(poly, fs));
map.setExtent(poly.getExtent().expand(2))
... View more
04-12-2017
02:37 AM
|
1
|
5
|
4115
|
|
POST
|
API Version? See the 4.3 samples here: Get started with graphics | ArcGIS API for JavaScript 4.3
... View more
04-12-2017
02:25 AM
|
0
|
0
|
4115
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-22-2024 12:37 AM | |
| 1 | 10-02-2025 10:28 AM | |
| 1 | 09-17-2024 12:29 AM | |
| 1 | 03-15-2024 11:33 AM | |
| 1 | 03-13-2024 11:20 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|