Mapbox-gl-js: Option to not wrap the world

Created on 12 Dec 2016  路  2Comments  路  Source: mapbox/mapbox-gl-js

We have a world map, in a panoramic container, that starts out fully zoomed out, but the wrapping looks pretty silly (can get 3+ copies of the world): http://jsfiddle.net/3wjybdf5/1/. Would it be possible to add a noWrap option? How hard would it be to add a noWrap option?

Solutions which don't work:

  • Using mapBounds (https://github.com/mapbox/mapbox-gl-js/issues/1488). We want to show the full world, and the map container is panoramic, not square.
  • Shrinking the map container, or changing the shape of the container. As you zoom in we still want the map to fill the the bounds of the panoramic container.
feature good first issue

Most helpful comment

All 2 comments

This wouldn't be too difficult to add @Que3216. I encourage you to submit a PR 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aendrew picture aendrew  路  3Comments

stevage picture stevage  路  3Comments

shotor picture shotor  路  3Comments

PBrockmann picture PBrockmann  路  3Comments

aderaaij picture aderaaij  路  3Comments