Ok Ive was working on the map a lot today so sorry for the all these posts.
First im not sure if this is meant to be or not, but in the "move history" links if you have zoomed around your map and click the "start" link you are re-positioned with the default center but with your current zoom level (not default "start" one). This can be wierd since my map is centered in the ocean if im zoomed in somewhere and click start Im looking at a lot of blue.
Secondly I like to change the placement of the filter block position, I ran into to many problems using left/right placements with a wide map they would often display under the map, load wierd , and cause havoc in ie when trying to style them {ff too}. Im trying to get the filter block to display on the same line as the "photo map" or "filtered on" text. I tried add some of the map.tpl code into showmap.tpl but it didnt work, I figure Ill have to put both into a table to show next to each other. Or should I just get rid of the "photo map" text and try to call $map.Filter in map.tpl so it all shows up on one line. Anyhow what ya think.
Posts: 1894
First problem: I'm not sure Floridave will have more insight on it
Second problem: The filter block can be on top/right/left or bottom but indeed isn't able to be next to the "photo map" text it's right underneath (when placed on top)
This can be changed easily within ShowMap.tpl
this displays the block up to underneath the text "Photo Map":
This displays the text "Photo Map":
so if you want them on the same line, just move the first block of code inside the <h2> tag of the second piece of code and that should do the trick when you select "TOP" for the filter list position
good luck ;)
-------------------------
The Termite
Posts: 27300
That is Not the intended behavior. I will look into this when I get home from work and get the kids fed and to bed.
Dave
Posts: 224
Thanks termite was looking for that first bit of code, it didnt work out putting it into the h2 tag but I put it all into a styleable table and it looks great. Something like
cheers
Posts: 27300
EDIT:
I CANT SEEM TO REPRODUCE>
Can you try with "Auto Center and Auto Zoom" enabled and see if that is the issue?
Dave
Posts: 364
I experience the same situation. I have auto center and zoom enabled.
Clicking Start indeed does go to the correct location, just not at
the correct zoom level.
Posts: 27300
in mapheader.tpl can you find:
GEvent.addListener(map, "moveend", function mapMoved() {
and addalert(myZoom);
In mine whenever I move the map a JS alert says the zoom level I stareted with.
If it does not on yours then I need to find out why it is changeing.
Dave
Posts: 27300
I think it has to do with the auto center and zoom. I don't have enough markers yet to see if this is the case.
dotnature does have regrouped markers.
glamoid, do you?
Posts: 27300
Confirmed. It is the regroup feature.
give me some time to figure this out. As I have no idea how this regroup stuff works.
Dave
Posts: 27300
Not extencivly tested and will let you test tonight / tomorrow:
in /templates/MapHeader.tpl find:
and change to:
Let me know if it works or not with auto-regroup and out center and zoom enabled.
Dave
PS. something in the back of my mind said I did that originaly and I changed it to myzoom for some reason. Lets hope I was dreaming.
Posts: 364
Checked quickly. It zoomed, almost correctly. Went to max zoom out; but,
Start was actually two levels less zoom.
I'll have to check tomorrow to see what my settings are to see if this
is what should happen.
Posts: 108
Same in 0.4.10d
Moz
Posts: 1894
The back of your mind is almost correct, I made that change because there was a bug with the start link as well ... I have a feeling we're hitting 2 bugs and each of them is the solution to the other one
Posts: 27300
I guess a solution is to put a if statment around that bit of code and check to see if the regroup feature is enabled?
Or
Is the original zoom location stored in the DB even if the user has "auto center / zoom" enabled or is it calculated on the fly?
Posts: 1894
When autocenter & zoom is enabled, the zoom level is calculated automatically on the fly because it might change depending on what's displayed ... This is the reason for the myzoom to be used ... I don't really see why the regropu feature would alter that ?
Posts: 27300
I think this is the issue. When the regroup feture is enable the value of myzoom gets changed.
Can we store the original starting zoom level in a session?
Posts: 364
Hey I tried something that. at first glance, appears to work (yous guys
may see why not though).
The original code mentioned above:
that was said should be changed to:
I changed to:
To go with that I found:
and added just after it:
Please see if it breaks anything or does not work.
Posts: 1894
This is good, this is even better:
no need for a {litreal} enclosure and better to create a new var just in case ;-))
Thanks for the idea !
-------------------------
The Termite
Posts: 364
I just throw things and hope they stick.
Posts: 27300
Floridave buys everybody a beer after work.
Posts: 1894
Sweeeeeeeet !
-------------------------
The Termite
Posts: 224
mmm beer, I get the second round!