In order to make the installation procedure much easier,
this patches makes openlayers no longer included as a git
submodule, but as a node module instead.
Also, the version of openlayers has been upgraded to
3.13.1, with an additional patch:
0a51e4ac32
In some cases, for example when using a `ol.control.ZoomSlider`,
that control used to not work at all, because it re-renders the
map and use the size of the elemement to calculate size values.
While activating GoogleMaps, the ol3 map becomes in limbo, thus
caused the size to return `NaN`.
This patch makes sure that the ol3 map is ready before activating
Google Maps.
This patch introduces documentation about the limitations of this
library, notably the 'rotation' that should not be enabled, as
mentioned in \#4.
A new `LIMITATIONS.md` file was added to document this.
A new utility method that returns the default interactions that
include only the ones that are recommended
(well, more like 'exclude' those that aren't).
- at the layer level only
- only polygon and linestring are currently supported (strokeColor,
strokeWeight, fillColor) Opacity is already supported in CSS3 color
definition when using RGBA.
When the browser window gets resized, make sure that the
center of the gmap map follows the center of ol3, as they both
act differently:
* on resize, ol3 stays that the center it is
* on resize, gmap keeps the left corder where it is
This patch introduces the activation of GoogleMaps, which sends
the div in which GoogleMaps is rendered inside the ol3 map target,
and the ol3 map gets added as a google maps control
Having a GoogleMaps map purely working by writing OL3 code would
not work because of the different kinds of interactions required
to happen on the GMaps map.
This re-factoring introduces a new approach: do like what was made
in the past with ol3 v3.0.0, i.e. have GoogleMaps include a OL3
map as a control that takes 100% of the size.
This work is still in progress...