Can a Tiff formated image be overlayed onto Google Maps?
Can a TIFF formated image be overlayed onto开发者_运维技巧 Google Maps just as a JPEG can be?
Check the documentation here. The sample code goes like that:
var myLatlng = new google.maps.LatLng(41.875696,-87.624207);
var myOptions = {
zoom: 11,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var ctaLayer = new google.maps.KmlLayer('http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml');
ctaLayer.setMap(map);
Hope it helps
TIFF needs to be converted to PNG or JPEG
精彩评论