ol3-google-maps | OpenLayers - Google Maps integration | Map library
kandi X-RAY | ol3-google-maps Summary
kandi X-RAY | ol3-google-maps Summary
OpenLayers - Google Maps integration
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ol3-google-maps
ol3-google-maps Key Features
ol3-google-maps Examples and Code Snippets
Community Discussions
Trending Discussions on ol3-google-maps
QUESTION
I am currently upgrading our openlayers from 2.x to 5.3. We have some KML files on the server which should be displayed as individual layers on the map. This is working perfectly fine after the upgrade except that the fill of the polygons of the KML do not apply the opacity provided in the color alpha [r,g,b,alpha].
I know this issue has been discussed frequently but the suggested solution always included to add the opacity in the alpha of the color, which is not working for me. I tried to use both, a color array and defining the color via rgba text. But the opacity of the KML content fill is always one.
However, the opacity is working when I add the opacity field to the layer object. But I only need the fill to have an opacity and not the stroke. As this might be of interest, I have integrated Google layers in my project by applying the OL3GM project. Thus, the ol.js file is integrated by this ol3gm project.
...ANSWER
Answered 2019-Aug-02 at 10:05In this case specifying
QUESTION
I have tried to use ol3-google-maps with Openlayers v4.6.5 by changing the example from http://mapgears.github.io/ol3-google-maps/ to import the script source for this version in the page, but nothing is displayed and no errors are logged to the console. It seems that maybe ol3gm.js already includes the OLv3 code. Is OLv4 not supported at all? Why? Are there any plans to support it the future or some workarounds I could try?
Thanks, Joao
...ANSWER
Answered 2018-Jun-06 at 15:11ol3-google-maps already includes OpenLayers, as explained in the README, under the Quick start section:
... load the OL3-Google-Maps script included in the tarball of the version you downloaded, which already includes OpenLayers so you don't need to load OpenLayers too
So, you don't need to load it again.
The version of OpenLayers included depends on the version of ol3-google-maps. To know what OL version is used, please see the ol3-google-maps releases.
QUESTION
I have been using ol3-google-maps 0.4 for quite some time but now had to upgrade it to 0.10 (or higher). So I am replacing the content of my ol3gm.js (0.4) to latest (0.13). With 0.4 my application works fine, but as soon as I switch to 0.13 get "this.setMap is not a function error".
Using Openlayers 3.18.1
Could someone let me know the difference between the two and How to resolve this issue.
...ANSWER
Answered 2017-Apr-12 at 12:21Starting with v0.6, ol3-google-maps gets released with OpenLayers compiled within. You do not need to load the OpenLayers library separately from there on.
Also, please not that for each release, the OpenLayers version used may be different. If you wish to use OpenLayers 3.18.1, then you should use ol3-google-maps v0.11.0.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ol3-google-maps
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page