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放入即可。