I wonder know if the last version of Openlayers (v4.0.1) supports Google Maps as a Tile Layer. I can't find any documention about this. If Openlayers doesn't support Google Maps, someone could tell me if there is any way to do this.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
For the Google's satellite data you can go with TileImage source, specifying pattern url's:
EDIT: For the Google's plain map data you can go with TileImage source, specifying pattern url's for the parts of pb argument:
OpenLayers has a written consent for using the api, which they used for OL2 and OL3. The support for it was stopped because of recurring issues with said api.
We are not allowed to use the tiles directly, the answer is not legal.
However, you may use Google's Map api and write your own OL source implementation with it or use an existing extension like ol3-google-maps
More information can be found here: https://github.com/openlayers/openlayers/issues/2205