Skip to content

Commit

Permalink
fix to disable 45 degree angle tilted imagery as default in Google tiles
Browse files Browse the repository at this point in the history
v2: Merge two patches into one

Signed-off-by: Pavel Shramov <shramov@mexmat.net>
  • Loading branch information
jywarren authored and shramov committed Aug 8, 2012
1 parent a864572 commit 58330e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions layer/tile/Google.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ L.Google = L.Class.extend({
var map = new google.maps.Map(this._container, {
center: this._google_center,
zoom: 0,
tilt: 0,
mapTypeId: google.maps.MapTypeId[this._type],
disableDefaultUI: true,
keyboardShortcuts: false,
Expand Down

3 comments on commit 58330e6

@seyfro
Copy link

@seyfro seyfro commented on 58330e6 Aug 17, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a special reason, why this is disabled by default? I didnt notice any bug when using tilt: 45

@jywarren
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, overlay imagery does not fit over 45° imagery, so if it's the default then things break when tilting begins.

@seyfro
Copy link

@seyfro seyfro commented on 58330e6 Aug 18, 2012 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.