Re: [pmapper-users] Firefox problem and toolbar
Brought to you by:
arminburger
From: Tiziano <tiz...@da...> - 2006-11-20 13:35:38
|
> > I would like to notice a problem that happens with firefox: when the map > > is > > loaded from the first time, the settings of defGroups in config.ini are > > just > > ignored. Depending of what you've set as default, when the map is loaded > > you > > see all the layer active or not active, indipendently of what you've set > > in > > defGroups. It's enough to change the visualization of layers clicking in > > the > > toc once to solve the problem. Using explorer this error doesn't happen. > > This error happens since version 2.0.0 (now i'm using the 3.0.0) > > > > do you by chance have a comma after the last entry for defGroups? Otherwise I've never saw that error. No, it isn't. It's strange that you've never seen this problem before, because it doesn't happen to me only, but to my collegue also. Anyway i will investigate further... > yes, send it to me. I don't fully understand what it does, but then I will see. I typically try to reduce tools, also for the latest I took by default smaller buttons. A DHTML menu where one can put things not directly related to the navigation (like download, print) would also save some space. And in pmapper 3 one can finally use easily horizontal toolbars again. Well, the code is pretty simple indeed. It set the "overflow" value to "auto" for the toolbar div and just resize first the y dimension of all the div, then check if the toolbar is visible or not and, according to this, i resize the toolbar width and all the others widths. Alternatively i found a nice javascript library which adds nice scrollbars to a div. I could try to integrate that one. And about horizontal toolbars, how can i choose to use it? In the config.ini there isn't no more the "toolBarOrientation" property that was present in the 2.0 version, you don't check for this variable in the startup_config but i think it's still this variable that controls the toolBarOrientation... > > > > Finally, i've made a customization of the application for my project and i > > added some javascript and php code almost everywhere (some ajax functions, > > some buttons ... ) so my code is mixed whitin the code of pmapper itself. > > The problem is that when i upgrade files of pmapper sometimes i can lose > > my > > changes. It would be a good thing, for the future, if all this code, js > > and > > php, was contained in a separate folder loaded in addition to the files of > > pmapper. > > You could then just put that into a separate folder... it's just a problem if the modifications are done on the p.mapper core files. > > armin yes you're right, but if i want to add a button to the toolbar which makes some actions on the map, for example, there is no way to do it without adding an "else if" in the domouseclick method, and this is in the p.mapper core. If i have to insert a button whithout modifing the core, i have to rewrite all the functions that interacts with the button and the map itself, and this is not a useful thing i think. And after that how can i add a file .js with my own functions in the project without modifing the map.phtml where there is the list of include? Tiziano Mischi |