Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuperMap/iClient-JavaScript
/ _toFeature
Method
_toFeature
src/openlayers/overlay/theme/Theme.js:582–585 ·
view source on GitHub ↗
(feature)
Source
from the content-addressed store, hash-verified
580
581
//统一处理 ol.feature所有 geometry 类型
582
_toFeature(feature) {
583
let
geoFeature = (
new
GeoJSON()).writeFeature(feature);
584
return
new
GeoJSONFormat().read(geoFeature,
"Feature"
);
585
}
586
587
}
Callers
1
toiClientFeature
Method · 0.95
Calls
1
read
Method · 0.45
Tested by
no test coverage detected