Hello,
I have a problem that I can not solve. I am trying to create a marker to place fixedly on the screen. Like the uber application. I use Google Maps native. I thank you if you find a solution.
Thank you for your answer, but I have already read the documentation but Ionic’s native Google maps works differently
@bankai14 The @ionic-native/google-maps does not have the feature.
But you can do:
<div id="map_canvas" style="position:relative;width:500px;height:500px;">
<img src="marker.png" style="position:absolute;left:50%;bottom:50%;width:32px;height:18px" />
</div>
Thank you it’s great! But tell me please is it possible to have a function that retrieves the latitude and longitude of the center of the map? Thank you anyway !
map.getCameraTarget()
Do you want to pick up the center position when you drag the map, correct?
Is your code moving any map?
I want to recover the latitude and longitude of the center of the map whenever I request it.
Something like that:
But it dosent work with me, ionic problem ?
Please check the source code implementation before asking.
Map.prototype.getCameraPosition = function() {
return this.get("camera");
};
console.log(this.map.getCameraTarget())
But getCameraTarget does not exist on my object GoogleMap, whereas in the documentation it is written that it is a method of the object.
The link is not document, it is source code of @ionic-native/google-maps
It’ weard because getCameraTarget does not exist for me
no other solutions ? 
What did you by yourself do in order to resolve?
I recommend you should do your best as much as possible when you ask to something to other people.
I looked for the object: getCameraTarget and I did not find. I tried to display this.map.getCameraPosition () but I have a null result.
I tried with the then: this.map.getCameraPosition ()
.then ((pos) => {
alert (“on”);
alert (JSON.stringify (pos));
});
Same no result… It does not even fit in my success.
Do you think this code returns a promise?