Skip to content

Allow for offset on center of map. #859

@zzolo

Description

@zzolo

Hi. It would be super awesome to be able to offset the center of the map relative to the viewport. My main use case is that I have a large box overlaying the map on the left, and would like the center of the map to be more to the right. This means that when I do a pan or center, it would actually be offset a certain amount of pixels or percentage of viewport. This would be a map level setting.

I have wanted this feature in many JS mapping libraries but have not found it yet. Unfortunately, it needs to be pretty low level in the API.

Sorry, I don't have any code, was just thinking about and wanted to get it down.

Thanks for the awesome project!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions