Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
feature request: max zoom for Google + Bing maps #38
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
djdawson3
Oct 23, 2012
I would really like this to be resolved too. Our application requires as much zoom as possible and the current levels of zoom for the bing layer is not good enough.
djdawson3
commented
Oct 23, 2012
I would really like this to be resolved too. Our application requires as much zoom as possible and the current levels of zoom for the bing layer is not good enough. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
nhinze
Nov 12, 2012
Contributor
You can simply add maxZoom: 21 and minZoom:0 to the Bing.js options to make it work. Google.js already has those options.
You can simply add maxZoom: 21 and minZoom:0 to the Bing.js options to make it work. Google.js already has those options. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
djdawson3
Nov 13, 2012
Thanks, nhinze. That did the trick. However, now I realize why those were not set to begin with. For whatever reason, map tiles at that view level don't seem to load through the leaflet plugin, even though they load when you use the bing maps site.
djdawson3
commented
Nov 13, 2012
Thanks, nhinze. That did the trick. However, now I realize why those were not set to begin with. For whatever reason, map tiles at that view level don't seem to load through the leaflet plugin, even though they load when you use the bing maps site. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
nhinze
Nov 13, 2012
Contributor
Do you have a location example? Before I added the min/max Zoom I could only load to zoom level 18. Now, on the location I tested, it goes down to zoom level 19. The Bing maps site goes down to zoom level 20 at the same site, but it is not loading new tiles, it just zooms in on the zoom 19 ones. So, I think that's why the plugin does not go past zoom level 19 where I tested.
Do you have a location example? Before I added the min/max Zoom I could only load to zoom level 18. Now, on the location I tested, it goes down to zoom level 19. The Bing maps site goes down to zoom level 20 at the same site, but it is not loading new tiles, it just zooms in on the zoom 19 ones. So, I think that's why the plugin does not go past zoom level 19 where I tested. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
djdawson3
Nov 13, 2012
I'm seeing something similar. I can set the maxZoom to 19 and it works ok for most places. I can set it higher than 19, but if I zoom in at those levels, I get tiles with a picture of a crossed out camera on them. On bing maps, it seems I can zoom in to level 20 with no problem, though.
Here is a location I was using:
Black Mountain Park Dr, San Diego, CA 92129
djdawson3
commented
Nov 13, 2012
I'm seeing something similar. I can set the maxZoom to 19 and it works ok for most places. I can set it higher than 19, but if I zoom in at those levels, I get tiles with a picture of a crossed out camera on them. On bing maps, it seems I can zoom in to level 20 with no problem, though. Here is a location I was using: Black Mountain Park Dr, San Diego, CA 92129 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
nhinze
Nov 13, 2012
Contributor
I checked your location. It seems to do the same thing as for me. I think Bing Maps simply uses the tiles of zoom level 19 and uses some CSS trick to enlarge them to create a zoom 20. However, I don't think they actually provide new tiles at that level for that location. The Bing Maps zoom level 20 tiles are pretty grainy, that's why I think they are just zoom level 19 enlarged. If you compare Google Maps at zoom 20, the quality is usually higher. So, I don't think the plugin is at fault.
I checked your location. It seems to do the same thing as for me. I think Bing Maps simply uses the tiles of zoom level 19 and uses some CSS trick to enlarge them to create a zoom 20. However, I don't think they actually provide new tiles at that level for that location. The Bing Maps zoom level 20 tiles are pretty grainy, that's why I think they are just zoom level 19 enlarged. If you compare Google Maps at zoom 20, the quality is usually higher. So, I don't think the plugin is at fault. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
brunob
Sep 21, 2013
Collaborator
@robertharm can we close this issue, as @nhinze said the plugin is not at fault ?
@robertharm can we close this issue, as @nhinze said the plugin is not at fault ? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
brunob
Oct 22, 2013
Collaborator
As bing layer use the metadata service (http://msdn.microsoft.com/en-us/library/ff701716.aspx) i think i can confirm this layer doesn't need a maxzoom options ;)
The google maxzoom bug is already aborded in #37 so we can close this issue.
As bing layer use the metadata service (http://msdn.microsoft.com/en-us/library/ff701716.aspx) i think i can confirm this layer doesn't need a maxzoom options ;) The google maxzoom bug is already aborded in #37 so we can close this issue. |
robertharm commentedAug 29, 2012
please set map zoom level to 22 for Google and Bing maps to 21 as it is supported by those...