3
I need to change the pin position of a embedded map on a page.
Next, by default it leaves in the center the pin, I want to choose a position within my main div.
I was looking the Google documentation on the stylization of Google Maps incorporated. However, it does not say where to place the pin, only when there is more than one and even so it tries to center the two.
The thing is, I got a div on top of the map, and I wanted to put the pin higher up.
I want the pin to be higher up, same image below. For what you have passed me it changes the pin place, but then the address is not correct.
You have the parameter in the URL that is the "center", have you tried using it? You choose where the map will be centered, you can change that until the pin gets where you want it. This parameter will not change the position of the pin but the center of the map.
– Filipe Moraes
Hello @Filipe edited the question, the center works for what I need too?
– Felipe Viero Goulart
Yes, it does! You will have to inform the coordinates so that the center of the map is a little lower than your pin.
– Filipe Moraes
Hi @Filipe, I edited my post again, another question came up.
– Felipe Viero Goulart
Are you entering the map via iframe? Put the code to make it easier. A solution would be to use the @Ronnyamarante code below.
– Filipe Moraes
I am adding by the function "initialize", as answered below, even so it changes the pin place, but there is the correct address there.
– Felipe Viero Goulart
Edit the post and add your initialize() function to see how it looks.
– Filipe Moraes