9 Posts
AndyBear
10 years ago
6
Topic
Hi Everyone!
Everything works fine, but
Prompt. How to align center the map template output
Get a VIP membership
10 years ago
4
Level 1
Hi,

If your map div has a defined width, you should be able to center it with some css :

#map_div_id {margin: 0 auto;float:none;}

Olivier
9 Posts
AndyBear
10 years ago
3
Level 2
Hi!
I can not help your technique. Please help with a solution. Or explain how to mak.

10 years ago
2
Level 3
Hi,

If you check the HTML code of the page where the map is displayed (Firebug, chrome/Safari debugger), and find the section where the map is defined, you'll see a 'div' container with a 'map_canvas' ID. So, either you apply the css to this div so :

#map_canvas {margin: 0 auto;float:none;}

or to the parent div depending on how you've set the width of the map. If you set a with in % in the template configuration, you should apply the css to the parent div of the map.

I hope this helps.

Happy new year,

Olivier
9 Posts
AndyBear
10 years ago
1
Level 4
Hi ALL! Hi Olivier! Happy new year!
Thanks for the lesson. But you did not understand me) ... it's my bad english and google) ... need a map marker to center. Thanks again
10 years ago
0
Level 5
Hi ponchik,
i had the same Problem and i think there is no posibility to center the map to the marker. You can use only a fixed Longitude an Latitude to center the map.
http://www.seblod.com/community/forums/lists-search-types/map-template-default-latitude-and-longitude
149 Posts
MtnPavlas
10 years ago
0
Level 1
Wow, what a great solution with the above suggested mapping plugin. Not sure the above code works correctly... I found this works great for me:

{mosmap width='100%'|height='400'|lat='<?php echo $cck->getValue('trail_latitude');?>'|lon='<?php echo $cck->getValue('trail_longitude');?>'|zoom='10'|mapType='Terrain'|text='sv DWO'|tooltip='DWO'|marker='1'|align='center' }
Get a Book for SEBLOD