Using map from tile providers are common use-case in web mapping: overlaying internally-hosted WMS/WFS layer on top of Google Maps/OSM/Bing Maps. These are easy in OpenLayers 2. However, this feat -especially Google Maps- is not supported anymore in OL3.
The book "OpenLayers 3 Beginner's Guide" page 107:
<i>OpenLayers 2 had some third-party mapping APIs embedded into its core, enabling you to use its maps inside your Openlayers-based application. Nowadays, for better decoupling of OpenLayers API from third-party APIs, the OpenLayers 3 team choose to have no support for other mapping APIs that tie together tiles and an associated JavaScript API library.
Why this decision?
One of the main goals of OpenLayers 3 was to rewrite OpenLayers 2, making its API cleaner. The support for Google Maps API in OpenLayers 2 has also put a significant maintenance burden on both library and application developers, to keep up with changes of the Google Maps API. To avoid this in OpenLayers 3, the support for Google Maps using Google Maps API is nonexistent. However, Google does provide its tiles independent from their API, but only to paying customers. Fortunately, you have more alternatives to Google Maps API (Bing, OSM).</i>
I found this awesome <a href="https://stackoverflow.com/a/33993878/4795725" target="_top" rel="nofollow" link="external">solution </a> in OpenLayers. I tried it myself that it works with OpenLayers 4.1.1 and Leaflet 0.7.7.
Can anyone elaborate more on:
1. how OL3 can access Google Maps tile independent from their API ?
2. whether the above solution in stackoverflow is the answer of my question #1?
3. what sort of payment/contract ? Is it the same with the Google Maps API Premium ?
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Accessing-Google-Tile-independent-from-their-API-in-OL3-possible-for-paying-customer-tp5330303.html">Accessing Google Tile independent from their API in OL3? (possible for paying customer?)</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/OpenLayers-Users-f3910695.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>