开发者

Google maps inside canvas object

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 :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜