Ticket #3615 (new feature)

Opened 16 months ago

Last modified 16 months ago

Google v3 layer option: disableTilt

Reported by: guest Owned by:
Priority: minor Milestone: 2.13 Release
Component: Layer.Google.v3 Version: 2.11
Keywords: google, tilt, alignment, 45 degree Cc: gregor@…
State: Needs More Work

Description

The Google Maps Satellite layer, automatically changes over to 45-degree tilt view after a certain zoom level. This causes problems for aligning data or showing markers.

The attached patch to Layer/Google/v3.js creates a new layer option: disableTilt:true When this option is used, this 45-degree tilting will be disabled.

Attachments

Googlev3layer_disableTile_patch.diff Download (482 bytes) - added by guest 16 months ago.
Patch to Layer/Google/v3.js to introduce the "disableTilt" option
OpenLayersGoogleV3Tilt_default_disabled.diff Download (0.9 KB) - added by guest 16 months ago.
Revised patch: enableTiltin unified diff format

Change History

Changed 16 months ago by guest

Patch to Layer/Google/v3.js to introduce the "disableTilt" option

Changed 16 months ago by ahocevar

  • state set to Needs More Work

Thanks @guest for the patch. Do we have a CLA from you? Also I'd prefer to have an enableTilt option instead, meaning that we don't want to tilt by default.

Changed 16 months ago by guest

I sent out the CLA a little bit ago via email. "Allensworth"

I agree entirely about tilt being turned off by default, though I was skittish about changing a default behavior.

Attached is an updated patch:

* APIProperty: enableTilt * {Boolean} If set to true, Google's 45-degree tilt view will be enabled. * Default is false, which disables 45-degree tilt. * Note that enabling 45-degree tilt may cause problems with overlays and markers matching up to the map.

Changed 16 months ago by ahocevar

Patch seems to be missing. Also, can you create a unified diff (diff -u or git/svn diff)? Thanks.

Changed 16 months ago by guest

Revised patch: enableTiltin unified diff format

Note: See TracTickets for help on using tickets.