Shaun Bentzen
MapTiler generates example mashup only in Google Maps V2, but the
tiles are fully usable in V3, OpenLayers and other viewers.
Here is an example of Google Maps V3 mashup with MapTiler tiles:
http://www.maptiler.org/example-usgs-drg-grand-canyon-gtiff/v3.html
Feel free to copy&paste the JavaScript source code and use it with
your own tiles - the code is really straight forward:
<script>
var maptiler = new google.maps.ImageMapType({
getTileUrl: function(coord, zoom) {
return zoom + "/" + coord.x + "/" + (Math.pow(2,zoom)-coord.y-1) + ".png";
},
tileSize: new google.maps.Size(256, 256),
isPng: true
});
var map;
function initialize() {
map = new google.maps.Map(document.getElementById("map_canvas"));
map.setCenter(new google.maps.LatLng(36.07, -112.19));
map.setZoom(11);
map.setMapTypeId('satellite');
map.overlayMapTypes.insertAt(0, maptiler);
}
</script>
Best,
Klokan
On Wed, Jun 2, 2010 at 4:29 PM, Gmail <sben...@gmail.com> wrote:
> Does map tiler support v3 of the google maps API?
>
> Shaun Bentzen
>
> --
> You received this message because you are subscribed to the Google Groups "MapTiler User Group" group.
> To post to this group, send email to mapt...@googlegroups.com.
> To unsubscribe from this group, send email to maptiler+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/maptiler?hl=en.
>
>
--
http://blog.klokan.cz/
http://www.maptiler.org/
http://www.oldmapsonline.org/