I'm looking for a way to use the zoomControlOptiions property, available on regular Google maps, for example:
zoomControlOptions: { style: google.maps.ZoomControlStyle.SMALL, position: google.maps.ControlPosition.LEFT_CENTER },
stack overflow
Same thing in official google maps docs
Unfortunately, I do not see this option in the Angular 2 Google Maps API Docs . Is there any way to do this? Is there any way to use full functionality despite using Angular 2 wrapper?
Note that just running this code works fine:
map.setOptions({ zoom: 1, center: position, zoomControl: true }); console.log(map.getZoom());
I can get my own google map object and run methods / set properties on it. The problem occurs when I try to use zoomControlOptions
, which comes directly from docs
Edit: This way it really works, the problem now turns around with the Typescript compiler.
Edit 2: I fixed the problem, but if someone wants a reward, feel free to explain why zoomControlOptions
not available.
source share