-
Zh GoogleMap
-
Component
-
Placemark not centering till second click
Placemark not centering till second click
-
jfaneuf
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 16
-
Thank you received: 0
-
-
10 years 3 weeks ago #4932
by jfaneuf
When I click my placemarks for the first time they don't completely center until I click them a second time and from then on they are ok. Is there a way to make them center correctly the first time for users? I have attached 2 images to show you what I mean.
- Joe
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4611
-
Thank you received: 460
-
-
-
-
-
10 years 3 weeks ago #4936
by Dima
Hi.
May be you set do not autopan.
Check in map details field "Disable AutoPan"
Please Log in or Create an account to join the conversation.
-
jfaneuf
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 16
-
Thank you received: 0
-
-
Less
More
-
Posts: 4611
-
Thank you received: 460
-
-
-
-
-
10 years 3 weeks ago #4948
by Dima
I think you can try to add size attributes (width, height) to img tag.
When infowin opened, the Google Maps API calculates and show its content, and you can see, that initially the img content is less than real size. Therefore it can be that behavior.
Please Log in or Create an account to join the conversation.
-
jfaneuf
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 16
-
Thank you received: 0
-
-
10 years 3 weeks ago #4951
by jfaneuf
I had tried that already and instead of getting the correct size I got the smaller size with scroll bars. Is there anything else that I could try?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4611
-
Thank you received: 460
-
-
-
-
-
10 years 3 weeks ago #4952
by Dima
Can you set width and height again and describe what placemark I can check. I think if little scrollbars appear, then the max-width attribute is set for img tag, I want to check that
Please Log in or Create an account to join the conversation.
-
Zh GoogleMap
-
Component
-
Placemark not centering till second click
Time to create page: 0.091 seconds