Placemark not centering till second click

  • jfaneuf
  • jfaneuf's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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
Attachments:

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #4936 by Dima
Hi.

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
  • jfaneuf's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 3 weeks 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

Please Log in or Create an account to join the conversation.

More
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.

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
  • jfaneuf's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 3 weeks 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.

More
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

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.091 seconds

Donate


Go to top