Questions tagged [ol3-google-maps]

OL3-Google-Maps is an open-source library designed to let users add Google Maps layers to an OpenLayers 3 map.

OL3-Google-Maps is a library used as an add-on for OpenLayers 3. It allows users to add Google Maps layers to their OpenLayers map. http://mapgears.github.io/ol3-google-maps/

Resources for beginners:

See also:

22 questions
6
votes
1 answer

Mouse rightclick on Openlayer 3

Is is possible to get the mouse right click event on Openlayer3? If so how can i get the latitude and longitude of the right clicked location. i have got the right click event by following map.getViewport().addEventListener('contextmenu', function…
Kiran k g
  • 946
  • 11
  • 19
3
votes
1 answer

Get a handle on the actual google map object

I'm trying to use the google places api on the same page as an openlayers map using olgm to serve and embedded google map. I need to have a handle to the google map in order to construct the places api PlacesService: var placesService = new…
pstanton
  • 35,033
  • 24
  • 126
  • 168
2
votes
0 answers

Why my pointer and blue dot are not together?

I am drawing features on map, using openlayers3. But my pointer and the blue dot(stroke) are not together. I have used this example.
jain
  • 512
  • 5
  • 19
2
votes
1 answer

Using ol3-google-maps with different projections

I want to create map using GoogleMaps with OL3. I've used ol3-google-maps to do this. And it works. But only when using default projections. When i try to build the map with other projeciton (using proj4js), it doesn't. The same code for OSM works…
2
votes
2 answers

Loading MULTIPOLYGON in openlayer 3 with OL3-Google-Maps

I'm trying to load a multipolygon shape in a SATELLITE map using OL3-Google-Maps with openlayer 3, but no work. When I used a simple polygon it work. really I don't know what is the problem here. look the code: var glSat = new…
Jose Luis
  • 43
  • 1
  • 9
1
vote
1 answer

Openlayers 3 forEachLayerAtPixel get only layer

I am working Openlayers 3. I added three layers WMS on the map in order as follows: Commune, District, Province. I used "forEachLayerAtPixel" to get information of the current layer when zoom. Example: When zoom to layer District then get…
1
vote
1 answer

Openlayer 3 rectangular selection

I have added some overlays in openlayer 3.Is it possible that if i click on ctrl+mouse left click and drag mouse to select a rectangular area on map and i need to get the overlays listed in that particular area?
Kiran k g
  • 946
  • 11
  • 19
1
vote
1 answer

ol3-google-maps error: olgm is not defined

I want to use Google Maps for Openlayers in my project. I try to integrate the maps with this: https://github.com/mapgears/ol3-google-maps. But I can't get even the simplest example to work. The map doesn't load (blank space), and in the console I…
thebat93
  • 37
  • 1
  • 6
0
votes
0 answers

Open Layer ( Geoserver ) Spatial Search not returning any features

I Created one generic layer in the GeoServer for the open layer ( OL3) and add a few features in the same layer, I'm trying to do the spatial search but the call is not returning any features. Here is the post-call I'm making to WFS ( Geoserver )…
Harish CHH
  • 104
  • 11
0
votes
0 answers

Open Layer ( Geoserver ) Spatial Search not working

I'm getting Exception when doing a spatial search from the open layer map ( OL3 ) Here is the post-call I'm making to WFS ( Geoserver ) URL http://xyz:5002/geoserver/wfs In Form Data we are sending query parameters cql_filter :…
Harish CHH
  • 104
  • 11
0
votes
1 answer

updateParams not working in ol3gm

I have migrated my project from openlayers to ol3-google-maps. Some issues observer are noted below. tiled.getSource().updateParams({"time": Date.now()}) function not working. Zoom functionality is little laggy. Is there any other method to…
0
votes
1 answer

Too many requests on ImageWMS layer

I believe this may be a bug but will check here first. In a simple map with just two layers, a Google layer and an ImageWMS layer generated by MapServer a simple zoom creates 8 to 10 WMS requests when only one request should be made. You can see…
Richard Greenwood
  • 876
  • 1
  • 10
  • 20
0
votes
2 answers

How to set the Google map type?

How do I set the Google map type e.g. SATELLITE or TERRAIN? I tried varitaions of the OpenLayers 2 syntax: new olgm.layer.Google( { type: google.maps.MapTypeId.SATELLITE }); and new olgm.layer.Google({ params: { type:…
Richard Greenwood
  • 876
  • 1
  • 10
  • 20
0
votes
2 answers

Upgrading ol3-google-maps 0.4 to 0.13 resulting in this.setMap is not a function error

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…
Rizwan
  • 61
  • 1
  • 6
0
votes
0 answers

Add many imageStatic Layers into map make browser's usage memory increase and browser slow down even crash

I'm working on project with openlayer-3. I want to display about hundreds of weather images on map with the same extent, each image will be presented for each time. My idea is I created each Image layer for each image and add all them to map and…
1
2