I'm trying to add GoogleMaps feature to client's CMS.
I'm using both maps module and my own classes.
I have everything working, except one problem, which i cannot get around for days already.
For example, i'm successfully using GMapField class to add points to database. I'm using it in a DataObject pop-up window.
The problem is, i cannot make it work in normal CMS pane (Main tab).
When i (re)load the whole CMS, the map is there.
But when i click on (another) page in the tree on left-hand side, displaying another site "page" (in my case a wrapper for a map object), the google map doesn't show.
So i wrapped the map JS code into a function, and introduced a button to call it; in order to execute the loaded JS in right pane.
The result? I always get the same map, regardless of which map was clicked in the tree. And the map is the one which was active when CMS was last reloaded.
In other words, same sh*t - JS got evaluated (and variables assigned values) only on window load; not on right-pane refresh.
And JS in the refreshed pane is just dead text.
Can someone please help me solve this in any way?