[map module] re-arrange embed style
dotnature
Joined: 2005-10-26
Posts: 224 |
Posted: Wed, 2006-03-08 22:14 |
Heya termite I posted this a while back though I wasnt very clear about it, I put it on the backburner but would like to tackle it. Using the get via map really messes up embedded sites most likely because they are fixed widths. I would like to get the data displayed on the right of the map to instead show under or above the map horizontally. See attached screen for what I mean. If you could just point me in right direction I can hopefully do it. |
|
Posts: 1894
That's fairly easy to do
I'll write up something simple to explain how
-------------------------
The Termite
Posts: 1894
When you open ShowMap.tpl toward the end of the file there is this:
If you change it slightly, it should be on the bottom
Try this (it should do the trick)
let me know ;)
-------------------------
The Termite
Posts: 1894
By the way, if it works I'll probably put it in the code surrounded by (if isEmbed)
-------------------------
The Termite
Posts: 1894
I think it wil look very funny but it will be under the map.
A nicer way would be to make the all thing flat under the map... which might require a bit more code but would work fairly easily as well :D
-------------------------
The Termite
Posts: 224
Ya that what I meant by horizontal, Ill mess around with it and see what I come up with.
Thanks
Posts: 27300
Another option would be to have the map a differnt size when you click the "pick"..... say 200px smaller. enought to fit the sidebar.
then the sidebar (of both) would fit.
Opinions?
Dave
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery
Posts: 1894
it sounds like a good idea but I'm wondering how small the map will get.
For example if it's embeded in drupal you already only use 50% of the available space (512px left on a 1024x768) and then you remove another 200px the map would be 300px ...
That's really the only thing that I'm worried about
I'll try to come-up with something good tho ;)
-------------------------
The Termite
Posts: 224
So I ended up doing arranging some on top of map and some on bottem, mainly because the thumbnail was to big to put up top. Is there a way in code to arrange the $form.itemthumb size? That way It would fit nicely on top, Here a screen of what it looks like, I also re-worded some stuff, let me know what you think.
[img]http://gallery.menalto.com/files/mapadmin.JPG[/img]
Posts: 1894
That looks definitively much better but you are coorect, it'll be even nicer if the thumb was on top right next to the text
If you'd like to resize the thumb I guess one good way is to use the CSS property max-width (or max-height in fact) to setup a maximum size that thumbnail should be using.
Other than that ... seems excellent to me.
When this is all cleared up, would you mind sending me your ShowMap.tpl file ? I will include this in the next release and put a condition if we are in embeded mode or not
Thanks a lot !!
-------------------------
The Termite
Posts: 224
OK ill email you, I made 2 versions, one like above with instructions on top and data on bottom which I think I prefer. Also a version thats need some help hehe, I tried to get it all displayed on top of map but for some reason the map was staying put in the middle so maybe you can just quickly bump that data up above the map, I also added an image tag so you can define the thumb size in css. Its also possible to just hardcode the thumbsize but since I was unable to get it properly above the map I couldnt tell what size would fit. Heres a screen of the one I can't get above the map.
..
[img]http://gallery.menalto.com/files/dif.gif[/img]
Posts: 1894
Sweet thanks a lot !
-------------------------
The Termite