js文件中添加:
"esri/config"引用(別名esriConfig),
設置esriConfig.fontsUrl = "http://localhost:8080/arcgis_js_api/library/4.12/fonts";
在ArcGIS api部署根目錄下添加fonts文件夾,將相應字體pbf放入即可。
js文件中添加:
"esri/config"引用(別名esriConfig),
設置esriConfig.fontsUrl = "http://localhost:8080/arcgis_js_api/library/4.12/fonts";
在ArcGIS api部署根目錄下添加fonts文件夾,將相應字體pbf放入即可。