Laurent

http://econym.org.uk/gmap/example_layercontrol.htm

  layers[2] = new GLayer("com.panoramio.all"); //(default is off with
false)
          layers[2].Visible = false;
          layers[2].Added = false;

          layers[3] = new GLayer("com.panoramio.popular"); //(default
is on with true)
          map.addOverlay(layers[3]);  // This one open by default
          layers[3].Visible = true;
          layers[3].Added = true;

credit to Mike Williams

Mapperz
http://mapperz.blogspot.com/

On Feb 17, 2:04 pm, bget <[email protected]> wrote:
> Please , help me :
>
>  I use pano_layer.js and PanoMapTypeControl and I would like to get
> panoramio photos loaded when body load (without click on toolbar).
>
> How do you write the command ?
>
> I tried :
>  var bounds = map.getBounds();
>   var southWest = bounds.getSouthWest();
>  var northEast = bounds.getNorthEast();
>   PanoramioLayer.prototype.load(map, {maxy: northEast.lat(), miny:
> southWest.lat(), maxx: northEast.lng(), minx: southWest.lng()});
>
> but the script said that "ids" are undefined
>
> Thanks a lot
>
> Laurent L
>
> [email protected]
--~--~---------~--~----~------------~-------~--~----~
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