Google maps type not working properly?

Showing 1-7 of 7 messages
Google maps type not working properly? Robert Voogdgeert 5/3/12 1:46 PM
I'm using the latest update from github. When changing the map type to anything other than 'toner', the following happens:

  • the first map is displayed but with the wrong location
  • the subsequent maps on the timeline are not loaded
It doesn't make a difference whether I use the embed.js like this:

<div id='timeline-embed'></div><script type='text/javascript'>var timeline_config = {source: 'data.json'}</script><script type='text/javascript' src='http://veritetimeline.appspot.com/latest/timeline-embed.js'></script>

Or whether I use my original index.html file where the other js were loaded:

<!DOCTYPE html>
<html lang="en">
<head>
 
<meta charset="utf-8" />
 
<title>Jij</title>
 
 
<!-- CSS -->
 
<link href="timeline.css" rel="stylesheet">


 
<!-- JavaScript -->
 
<script type="text/javascript" src="jquery-min.js"></script>
 
<script type="text/javascript" src="timeline-min.js"></script>
 
 
<script>
 $
(document).ready(function() {
 
var timeline = new VMM.Timeline();
 timeline
.init("data.json");
 
});
</script>
</head>
<body>


<script type="text/javascript">
   
var timeline_config = {
 maptype
: 'watercolor',
 
}
</script>


<div id="timeline"></div>
</body>
</html>


Does anyone know how to solve this?
Re: Google maps type not working properly? Zach Wise 5/3/12 3:23 PM
Can you attch your data.json file so I can try and debug it?
Re: Google maps type not working properly? Robert Voogdgeert 5/4/12 2:47 AM
Zach,


Here it is.

Robert.
Re: Google maps type not working properly? Zach Wise 5/4/12 6:00 AM
Re: Google maps type not working properly? Robert Voogdgeert 5/4/12 11:31 AM
Thanks for testing but the timeline config is:

var timeline_config = {
 width
: "100%",
 height
: "100%",
 source
: 'debug_1.json',
 font
: 'Bevan-PotanoSans', //OPTIONAL
 css
: '../timeline.css', //OPTIONAL
 js
: '../timeline.js' //OPTIONAL
}



That is, without the map-type variable, try to set the latter to roadmap for example.
Re: Google maps type not working properly? Zach Wise 5/4/12 11:46 AM
Just set it to "roadmap" and it still works:
Re: Google maps type not working properly? Robert Voogdgeert 5/4/12 12:06 PM
It's working for me now as well. don't know what caused it... thanx anyway