Thanks Larry...

Those sound like good suggestions.  I still would like to get to the bottom 
of the issues though.  I'm interested to know if I have coded something 
incorrectly.

On Monday, February 27, 2012 9:47:13 AM UTC-8, geoco...@gmail.com wrote:
>
> On Feb 26, 9:12 pm, Mapper99 <mappe...@gmail.com> 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, geoco...@gmail.com wrote:
>
> On Feb 26, 9:12 pm, Mapper99 <mappe...@gmail.com> 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, geoco...@gmail.com wrote:
>
> On Feb 26, 9:12 pm, Mapper99 <mappe...@gmail.com> 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, geoco...@gmail.com wrote:
>
> On Feb 26, 9:12 pm, Mapper99 <mappe...@gmail.com> 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

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/A_ikMyVHF58J.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to