ngx-openlayers icon indicating copy to clipboard operation
ngx-openlayers copied to clipboard

Vector Layer and Geojson format - wrapX

Open siddharth1903 opened this issue 7 years ago • 1 comments

Hi, I would like to render a geojson map with wrapX set to false. The component currently does not seem to support wrapX for geojson source.. What is supported is vector layer -> vector source with geojson as a format, where theoretically wrap x could work.. How do i do this?

siddharth1903 avatar Oct 24 '17 17:10 siddharth1903

Hello,

In SourceGeoJSONComponent the property @Input() wrapX: boolean; can be added if you want to contribute.

As a workaround, you should be able to set the property to instance of the source:

@ViewChild geoJsonSource: SourceGeoJSONComponent
geoJsonSource.instance.set('wrapX',true);

OL docs

Yakoust avatar Oct 31 '17 15:10 Yakoust