ngx-openlayers
ngx-openlayers copied to clipboard
Vector Layer and Geojson format - wrapX
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?
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);