简体   繁体   中英

confused about using projection of vector in ol3

I am confused about using projection of vector.

Should source of data projection be same as vector projection for ol3. or ol3 vector transformes source data to target projection.

Is following code correct as source in "EPSG:4326" target in "EPSG:3857" source: new ol.source.GeoJSON({ url: './resources/js/diriFay4326.geojson', projection: 'EPSG:3857' }) ,

I will appreciate if you answer

regards

正确,这是目前使openlayers 3转换GeoJSON功能的方法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM