Hi, Guys,
really need help on this one... i am trying to add a layer of radar data(image from web map service) to esri map using javascript, below is the URL where the image can be accessed. any one can provide me a solid an example how to do it... or any suggestion how should i do it. i googled but no luck so far. thanks
https://geo.weather.gc.ca/geomet/?lang=en&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=RADAR_1KM_RRAI&STYLES=RADARURPPRECIPR14&FORMAT=image/png&TRANSPARENT=true&HEIGHT=256&WIDTH=256&UPPERCASE=true&SLD_VERSION=1.1.0&KEEPBUFFER=2&ZINDEX=8&TIME=2019-07-23T15:30:00Z&CRS=EPSG:3857&BBOX=-12523442.714243276,2504688.5428486555,-10018754.171394622,5009377.08569731
thanks for your reply, we use 3.2x version of esri
4x example
https://developers.arcgis.com/javascript/latest/sample-code/layers-wms/index.html
3x example
https://developers.arcgis.com/javascript/3/jssamples/layers_wmsresourceinfo.html
Yao,
You need to use a WMSLayer for this. You did not specify if you were using 4.x or 3.x of the API though.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.