[ArcGIS API for JavaScript 4.8] Sample Code-Get Started-layers简介
1 <! doctype html > 2 < html > 3 < head > 4 < meta charset ="utf-8" > 5 <!-- 移动端优化 --> 6 < meta name ="viewport" content ="initial-scale=1,maximum-scale=1,user-scalable=no" > 7 < title > Into to layers </ title > 8 9 <!-- JS API的引入 --> 10 < link rel ="stylesheet" href ="https://js.arcgis.com/4.8/esri/css/main.css" > 11 < script src ="https://js.arcgis.com/4.8/" ></ script > 12 13 < script > 14 15 </ script > 16 17 <!-- 设置样式,正确显示地图 --> 18 < style > 19 html,body,#viewDiv { 20 padding : 0 ; 21 margin : 0 ; 22 height : 100% ; 23 width : 100% ; 24 } 25 </ style > 26 </ head > 27 28 < body > 29 <