aparshin / leaflet-boundary-canvas

Leaflet plugin to draw raster layers with arbitrary boundary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use this with other layers

fredosix opened this issue · comments

Hello, i'd like to use this with a google map layer, for example one created with this: https://github.com/shramov/leaflet-plugins

how could i do?

thanks

Hello!

Unfortunately, it is impossible to use this plugin with Google Maps layers, because Google tiles can be used only with Google Maps API (licence restriction). That is how Shramov Google layer works: it simply loads Google Maps API and places its container above Leaflet. So, it is not possible to work with separate tiles to cut them with polygonal boundary.

More realistic idea is allow to add polygonal boundary to any layer, that is based on L.TileLayer. Using mix-ins, for example...