Hi Peter,

v3 API currently doesn't provide this functionality, but there are
several examples on how you can calculate tiles on your own. You can
look at my (http://notebook.kulchenko.com/maps/gridapi) or Berry's
(http://www.provide.net/~bratliff/polycluster/) experiments. It should
be fairly straightforward to replace canvas with an image. In fact,
this example (http://notebook.kulchenko.com/maps/datamark) provides
getTileURL method that you can tweak to point to whatever tile image
you want to load (this particular example is for v2, but the
calculations are the same and the other examples work with v3 API).

Paul (http://notebook.kulchenko.com/maps/)

On Nov 24, 11:54 pm, "Peter.MapTeam" <[email protected]> wrote:
> Hi,
>
> - In v2 we using the layer to add the layer from Mapserver to google
> map so easy, but now in V3 it don't have the layer so how can we add
> the layer from Mapserver to google map like V2
>
> my example :
> var tilePanels = new GTileLayer(null, null, null, {
>         tileUrlTemplate :mapLayerURL,
>         isPng :true,
>         opacity :1
>     });
>    var layer1=[G_NORMAL_MAP.getTileLayers()[0],tilePanels];
>    var custommap1 = new GMapType(layer1, G_SATELLITE_MAP.getProjection
> (), "Map 1", G_SATELLITE_MAP);
>    if(myTileLayer){map.removeOverlay(myTileLayer);}
>    myTileLayer = new GTileLayerOverlay(tilePanels);
>    map.addOverlay(myTileLayer);
>
> But in V3 we don't have them like V2.

--

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