is it possible to get google maps inside a canvas object? So if I draw say a triang开发者_C百科le the map would only show up inside it.
yes it is possible
http://googlemapsmania.blogspot.com/2011/04/using-canvas-with-google-maps.html
http://econym.org.uk/gmap/
Suppose we have a div with id = "map" and within it we have our map:
Supongamos que tenemos un div con id = "map" y dentro de él, nuestro mapa:
#map {
transform: rotate(-10deg);
}
Simple, effective. :)
Simple, efectivo :)
精彩评论