NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I have a map displaying a feature overlaying the islands to the west of Alaska and when I extend the bounds, it is zooming way out to world view and repeating part of the feature on the other side of the map - I guess because it is so close to the border.

How do I prevent this? (I am thinking either by setting the max bounds or by shifting the IDL but I have no success withe either).

asked 18 Apr '11, 18:16

Denn's gravatar image

Denn
1111
accept rate: 0%


For all I can tell that is a bug in the rather simple way Openlayers calculates the bounding box. The best chances to get help with this is probably the openlayers mailinglist.

permanent link

answered 24 Apr '11, 09:31

petschge's gravatar image

petschge
8.3k217398
accept rate: 21%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×122
×9
×2

question asked: 18 Apr '11, 18:16

question was seen: 5,676 times

last updated: 24 Apr '11, 09:31

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum