开发者

Google maps inside canvas object

开发者 https://www.devze.com 2023-03-27 12:26 出处:网络
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

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

精彩评论

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