On Feb 27, 9:17 pm, "[email protected]" <[email protected]>
wrote:
> On Feb 27, 10:09 pm, Mapper99 <[email protected]> wrote:
> > On Monday, February 27, 2012 9:47:13 AM UTC-8, [email protected] wrote:
>
> > > On Feb 26, 9:12 pm, Mapper99 <[email protected]> wrote:
> > > > Actually, this issue is still not solved.
>
> > > > Here is my zoom code:
>
> > > > function QuickZoom(location){
> > > >   if (map.getMapTypeId() == "arcgis"){
> > > >  map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
> > > >  }
> > > >  switch (location) {
> > > >         case 'Kenya': map.setCenter(new google.maps.LatLng(0.045308,
> > > >  37.659934)); map.setZoom(22); break;
> > > >          case 'Niger Desert':   map.setCenter(new
> > > > google.maps.LatLng(20.197507, 12.964894)); map.setZoom(22); break;
> > > >          case 'Zinder': map.setCenter(new
> > > > google.maps.LatLng(13.789515,9.000553));   map.setZoom(22); break;
> > > >         case 'India': map.setCenter(new google.maps.LatLng(21.567350,
> > > > 76.135597)); map.setZoom(19); break;
> > > >          case 'Filingue': map.setCenter(new
> > > > google.maps.LatLng(14.355961,3.320918));   map.setZoom(22); break;
> > > >          default: break;
> > > >          }
>
> > > > }
>
> > > > The actual map can be viewed here.
>
> > > >http://save-the-rain.com/SR2/save-the-rain-2.html
>
> > > > Click the Kenya, Niger Desert, etc links.  If you click on the Kenya
> > > link,
> > > > the map zooms in fine.  If you click on the "Niger Desert" link, the map
> > > > only zooms to zoom level 19.  It should be 22.  If you click on the
> > > "Niger
> > > > Desert" link again, the map will zoom into 22.
>
> > > > Any idea why this is happening?
>
> > > Two thoughts:
> > > 1. do the setCenter, wait for the center to change (wait for the
> > > center_changed event to fire), then do the zoom.
> > > 2. code the zoom in two stages, setCenter/zoom to 19; zoom to 22.
> > > Perhaps put the second zoom in a zoom_changed handler.
>
> I don't think you coded anything incorrectly.
>
> My theory is that the base map supports up to zoom level 19.  If you
> want to zoom in further than that you have to be a a location that
> supports the higher zoom level.  So, therefore suggestion #1 might
> work, if you re-position the map first, then zoom in, it might not
> also.
>
> Suggestion #2 is basically doing what you know works, but
> programmatically.
>
> But neither work.  Seems that the api can't load the zoom level 22
> tiles (it is getting 404 file not found on them) at the higher zoom
> levels (at least in Chrome).  Seems like it might be a bug.

Test page:

http://www.geocodezip.com/v3_world_countries_testZoom.html

    -- Larry


>
>
>
>
>
>
>
>
> > > > Thanks in advance,
>
> > > > M
>
> > > > On Saturday, February 25, 2012 8:31:44 PM UTC-8, Mapper99 wrote:
>
> > > > > My bad...FYI - if anyone else is experiencing this, just ensure the
> > > map
> > > > > type is set before you zoom.  It appears the HYBRID map type and the
> > > > > SATELLITE map type share the same imagery, just not the same amount of
> > > zoom
> > > > > levels!
>
> > > > > case 'Filingue': map.setCenter(new google.maps.LatLng(14.355961,
> > > > > 3.320918));map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
> > > map.setZoom(21);
> > > > >  break;
>
> > > > > Works like a charm.  Great imagery by the way.
>
> > > > > M
>
> > > > > On Saturday, February 25, 2012 8:24:54 PM UTC-8, Mapper99 wrote:
>
> > > > >> I can't get my map to zoom in past level 19 using the v3 API:
>
> > > > >> case 'Filingue': map.setCenter(new
> > > > >> google.maps.LatLng(14.355961,3.320918));map.setZoom(21);
> > > > >> map.setMapTypeId(google.maps.MapTypeId.HYBRID); break;
>
> > > > >> This area supports more zoom levels:
>
> > > > >>http://maps.google.ca/maps?q=14.355961,3.320918&hl=en&ll=14.355961,3....
>
> > > > >> Any idea why this won't work?  Is there something I need to set when
> > > I
> > > > >> initialize my map?  Works fine in the v2 API.
>
> > > > >> Thanks in advance,
>
> > > > >> M
> > On Monday, February 27, 2012 9:47:13 AM UTC-8, [email protected] wrote:
>
> > > On Feb 26, 9:12 pm, Mapper99 <[email protected]> wrote:
> > > > Actually, this issue is still not solved.
>
> > > > Here is my zoom code:
>
> > > > function QuickZoom(location){
> > > >   if (map.getMapTypeId() == "arcgis"){
> > > >  map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
> > > >  }
> > > >  switch (location) {
> > > >         case 'Kenya': map.setCenter(new google.maps.LatLng(0.045308,
> > > >  37.659934)); map.setZoom(22); break;
> > > >          case 'Niger Desert':   map.setCenter(new
> > > > google.maps.LatLng(20.197507, 12.964894)); map.setZoom(22); break;
> > > >          case 'Zinder': map.setCenter(new
> > > > google.maps.LatLng(13.789515,9.000553));   map.setZoom(22); break;
> > > >         case 'India': map.setCenter(new google.maps.LatLng(21.567350,
> > > > 76.135597)); map.setZoom(19); break;
> > > >          case 'Filingue': map.setCenter(new
> > > > google.maps.LatLng(14.355961,3.320918));   map.setZoom(22); break;
> > > >          default: break;
> > > >          }
>
> > > > }
>
> > > > The actual map can be viewed here.
>
> > > >http://save-the-rain.com/SR2/save-the-rain-2.html
>
> > > > Click the Kenya, Niger Desert, etc links.  If you click on the Kenya
> > > link,
> > > > the map zooms in fine.  If you click on the "Niger Desert" link, the map
> > > > only zooms to zoom level 19.  It should be 22.  If you click on the
> > > "Niger
> > > > Desert" link again, the map will zoom into 22.
>
> > > > Any idea why this is happening?
>
> > > Two thoughts:
> > > 1. do the setCenter, wait for the center to change (wait for the
> > > center_changed event to fire), then do the zoom.
> > > 2. code the zoom in two stages, setCenter/zoom to 19; zoom to 22.
> > > Perhaps put the second zoom in a zoom_changed handler.
>
> > >   -- Larry
>
> > >   -- Larry
>
> > > > Thanks in advance,
>
> > > > M
>
> > > > On Saturday, February 25, 2012 8:31:44 PM UTC-8, Mapper99 wrote:
>
> > > > > My bad...FYI - if anyone else is experiencing this, just ensure the
> > > map
> > > > > type is set before you zoom.  It appears the HYBRID map type and the
> > > > > SATELLITE map type share the same imagery, just not the same amount of
> > > zoom
> > > > > levels!
>
> > > > > case 'Filingue': map.setCenter(new google.maps.LatLng(14.355961,
> > > > > 3.320918));map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
> > > map.setZoom(21);
> > > > >  break;
>
> > > > > Works like a charm.  Great imagery by the way.
>
> > > > > M
>
> > > > > On Saturday, February 25, 2012 8:24:54 PM UTC-8, Mapper99 wrote:
>
> > > > >> I can't get my map to zoom in past level 19 using the v3 API:
>
> > > > >> case 'Filingue': map.setCenter(new
> > > > >> google.maps.LatLng(14.355961,3.320918));map.setZoom(21);
> > > > >> map.setMapTypeId(google.maps.MapTypeId.HYBRID); break;
>
> > > > >> This area supports more zoom levels:
>
> > > > >>http://maps.google.ca/maps?q=14.355961,3.320918&hl=en&ll=14.355961,3....
>
> > > > >> Any idea why this won't work?  Is there something I need to set when
> > > I
> > > > >> initialize my map?  Works fine in the v2 API.
>
> > > > >> Thanks in advance,
>
> > > > >> M
> > On Monday, February 27, 2012 9:47:13 AM UTC-8, [email protected] wrote:
>
> > > On Feb 26, 9:12 pm, Mapper99 <[email protected]> wrote:
> > > > Actually, this issue is still not solved.
>
> > > > Here is my zoom code:
>
> > > > function QuickZoom(location){
> > > >   if (map.getMapTypeId() == "arcgis"){
> > > >  map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
> > > >  }
> > > >  switch (location) {
> > > >         case 'Kenya': map.setCenter(new google.maps.LatLng(0.045308,
> > > >  37.659934)); map.setZoom(22); break;
> > > >          case 'Niger Desert':   map.setCenter(new
> > > > google.maps.LatLng(20.197507, 12.964894)); map.setZoom(22); break;
> > > >          case 'Zinder': map.setCenter(new
> > > > google.maps.LatLng(13.789515,9.000553));   map.setZoom(22); break;
> > > >         case 'India': map.setCenter(new google.maps.LatLng(21.567350,
> > > > 76.135597)); map.setZoom(19); break;
> > > >          case 'Filingue': map.setCenter(new
> > > > google.maps.LatLng(14.355961,3.320918));   map.setZoom(22); break;
> > > >          default: break;
> > > >          }
>
> > > > }
>
> > > > The actual map can be viewed here.
>
> > > >http://save-the-rain.com/SR2/save-the-rain-2.html
>
> > > > Click the Kenya, Niger Desert, etc links.  If you click on the Kenya
> > > link,
> > > > the map zooms in fine.  If you click on the "Niger Desert" link, the map
> > > > only zooms to zoom level 19.  It should be 22.  If you click on the
> > > "Niger
> > > > Desert" link again, the map will zoom into 22.
>
> > > > Any idea why this is happening?
>
> > > Two thoughts:
> > > 1. do the setCenter, wait for the center to change (wait for the
> > > center_changed event to fire), then do the zoom.
> > > 2. code the zoom in two stages, setCenter/zoom to 19; zoom to 22.
> > > Perhaps put the second zoom in a zoom_changed handler.
>
> > >   -- Larry
>
> > >   -- Larry
>
> > > > Thanks in advance,
>
> > > > M
>
> > > > On Saturday, February 25, 2012 8:31:44 PM UTC-8, Mapper99 wrote:
>
> > > > > My bad...FYI - if anyone else is experiencing this, just ensure the
> > > map
> > > > > type is set before you zoom.  It appears the HYBRID map type and the
> > > > > SATELLITE map type share the same imagery, just not the same amount of
> > > zoom
> > > > > levels!
>
> > > > > case 'Filingue': map.setCenter(new google.maps.LatLng(14.355961,
> > > > > 3.320918));map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
> > > map.setZoom(21);
> > > > >  break;
>
> > > > > Works like a charm.  Great imagery by the way.
>
> > > > > M
>
> > > > > On Saturday, February 25, 2012 8:24:54 PM UTC-8, Mapper99 wrote:
>
> > > > >> I can't get my map to zoom in past level 19 using the v3 API:
>
> > > > >> case 'Filingue': map.setCenter(new
> > > > >> google.maps.LatLng(14.355961,3.320918));map.setZoom(21);
> > > > >> map.setMapTypeId(google.maps.MapTypeId.HYBRID); break;
>
> > > > >> This
>
> ...
>
> read more »

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to