On Aug 18, 4:31 am, kul <[email protected]> wrote:
> Hi,
>
> I am using a  google map api in my application,
> here's the link:
>
> http://www.vondoo.com/vmap/
>
> In this API the zoom level is fixed as:
>
> var $zoom = 16;
>
> and used here:
>
> $_output .= sprintf('map.setCenter(new GLatLng(%s, %s), %d, %s);',
> number_format($this->center_lat, 6, ".", ""), number_format($this-
>
> >center_lon, 6, ".", ""), $this->zoom, $this->map_type) . "\n";
>
> So, the zoom level remains fixed for all the search results, and user
> has to scro/l down/up the zoom scale on left side to see the exact
> location, which isn't the case in actual google maps,so, please
> suggest me a way to not to fix that zoom level, but, get different
> zoom levels for different search locations. I am using a PHP API.

This group supports the Google Maps API which is javascript and html.


It sounds like you are asking about this:
Part 14 Fitting the map zoom to the data
http://econym.org.uk/gmap/basic14.htm

But it looks like you are using the geocoder.  The geocoder returns
"LatLonBox" as "ExtendedData" that can be used to zoom to the results.

  "ExtendedData": {
    "LatLonBox": {
      "north": 45.8110548,
      "south": 41.6867168,
      "east": -84.6899673,
      "west": -92.8857683
    }
  },

-- Larry

>
> Thanks,
> Kul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to