×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Detail Page marker not vertically centred.

Detail Page marker not vertically centred. 13 years 3 months ago #13579

  • Bruce Hatton
  • Bruce Hatton's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 62
  • Thank you received: 0
I am not sure if I have some setting wrong, but when I follow the 'Read More' link to the Detail Page, the marker is not vertically centred. Example at beta4.africamaps.cc - follow any "Read More' link in any infowindow.

Detail Page marker not vertically centred. 13 years 3 months ago #13581

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
It is centered ;)
You have made some modifications to the map that doesn't really make sense.
the code looks like this
<div id="map_cont">
<div id="map_canvas">
your map is shown here
</div>
</div>
the map_cont has width of 400px, but the map_canvas has width of 800px... So google does the proper thing and centers the marker 400px far from top... But since the map_cont is hiding the rest of the map you think that it is not centered properly.

You need to have the same values for map_cont and map_canvas or the map_cont should be bigger than the map_canvas.

Detail Page marker not vertically centred. 13 years 3 months ago #13582

  • Bruce Hatton
  • Bruce Hatton's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 62
  • Thank you received: 0
OK - I think I got that. Thanks for the explanation.

I have changed the map_canvas in the Hotspots config to 400 and it works fine, but I am not sure where to change the size of map_cont ?
  • Page:
  • 1
Time to create page: 0.098 seconds