SuperMap/iClient-JavaScript

项目中引入proj4leaflet后再引入这个包会报错No projection definition for code EPSG:4490

Face2Sun opened this issue · 3 comments

Request a feature or report a bug? [这是一个需求还是一个缺陷]

11.0.0版本缺陷

One-line summary [问题简述]

项目引入proj4leaflet依赖后再引入超图依赖包就会报错,把超图依赖去掉就不会有这个问题

Version [产品及版本]

  • iClient product (for leaflet,for openlayers,for mapboxgl,classic)[iClient 产品]:
  • iClient version [iClient 版本]:
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Actual Behavior [当前现象]

vue项目npm方式引入@supermap/iclient-common@11.0.0后会再使用new L.Proj.CRS('EPSG:4490', '+proj=longlat +ellps=GRS80 +no_defs', ...)会报错No projection definition for code EPSG:4490

Expected Behavior [期望现象]

希望官方和用户们注意到这个问题及时修复,期待讨论回复

Example of reproducing the issue [重现现象的例子]


What is motivation or use case for changing the behavior? [需求的场景和目的是什么?]

感谢您提的issue。可否麻烦您提供demo代码,或者线上实例 (JSFiddle/codesandbox)。方便我们重现及调试问题,谢谢。

您是使用@supermap/iclient-leaflet吗,如果是话可以不需要再引入proj4leaflet,可使用@supermap/iclient-leaflet提供的L.supermap.Proj.CRS定义投影。

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.