fjanon / timemap

Automatically exported from code.google.com/p/timemap
MIT License
0 stars 0 forks source link

cannot use TimeMapItem.changeTheme #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use timemap.1.6
2. edit TimeMap.init
3. add the following datasets option:

    openInfoWindow: function() {
        var item = this;
        item.changeTheme(TimeMap.themes.red);
    }

What is the expected output? What do you see instead?

For the application I'm writting, it is anoying that the map moves when the 
infoWindow opens. Instead I just want to change the theme of the item.

The javascript consoles indicates:
    Error: item.changeTheme is not a function
    Source File: http://www.example.com/
    Line: 88

What version of the product are you using? On what operating system?

Timemap.1.6
WindowsVista > Firefox 3.6.6

Please provide any additional information below.

Congratulations for your great project!

Original issue reported on code.google.com by rui.pcoe...@netcabo.pt on 1 Jul 2010 at 10:08

GoogleCodeExporter commented 9 years ago
Unless you're using timemap_full.pack.js (which contains all the code in the 
library), you'll need to include the file manipulation.js in your file in order 
to use changeTheme(). I've confirmed that this works if you do so.

{{{
    <script src="timemap.js" type="text/javascript"></script>
    <script src="manipulation.js" type="text/javascript"></script>
}}}

Original comment by nick.rab...@gmail.com on 1 Jul 2010 at 10:17