- Posts: 16
- Thank you received: 0
Placemark not centering till second click
- jfaneuf
- Topic Author
- Offline
- New Member
Less
More
10 years 7 months ago #4932
by jfaneuf
Placemark not centering till second click was created 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
- Joe
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
10 years 7 months ago #4936
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Placemark not centering till second click
Hi.
May be you set do not autopan.
Check in map details field "Disable AutoPan"
May be you set do not autopan.
Check in map details field "Disable AutoPan"
Don't forget support my developments: post review in JED , donate , help with translation
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 7 months ago #4946
by jfaneuf
Replied by jfaneuf on topic Placemark not centering till second click
That did not work. It seems to pan ok but it's almost like the image doesn't load until after the popup has loaded so the size of the popup does not include the image until it has already centered and panned.
monadnockart.faneufclan.com/index.php/ar...r/27-art-tour-19-map
monadnockart.faneufclan.com/index.php/ar...r/27-art-tour-19-map
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
10 years 7 months ago #4948
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Placemark not centering till second click
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.
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.
Don't forget support my developments: post review in JED , donate , help with translation
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 7 months ago #4951
by jfaneuf
Replied by jfaneuf on topic Placemark not centering till second click
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.
- Dima
- Offline
- Platinum Member
10 years 7 months ago #4952
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Placemark not centering till second click
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
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
Time to create page: 0.204 seconds