Enable google maps controls google_spreadsheet.html

88 views
Skip to first unread message

Timma egal

unread,
Nov 9, 2013, 5:41:39 PM11/9/13
to timemap-d...@googlegroups.com
Hello and thank you for your help.

How can i enable the google map controls in the google_spreadsheet.html example?
My code isn't working. I didn't changed anything in the js. In the timemap.js controls are enabled-
Sorry for this dumb question :-)


var tm;
$(function() {
   
    // make a custom map style
    var styledMapType = new google.maps.StyledMapType([
         { stylers: [ { "saturation": -100 } ] },{ "featureType": "water", "stylers": [ { "gamma": 1.67 }, { "lightness": 27 } ] },{ "elementType": "geometry", "stylers": [ { "gamma": 1.31 }, { "lightness": 12 } ] },{ "featureType": "administrative", "elementType": "labels", "stylers": [ { "lightness": 51 }, { "gamma": 0.94 } ] },{ },{ "featureType": "road", "elementType": "labels", "stylers": [ { "lightness": 57 } ] },{ "featureType": "poi", "elementType": "labels", "stylers": [ { "lightness": 42 } ] } ],
   {
        name: "white"
    });

    tm = TimeMap.init({
        mapId: "map",               // Id of map div element (required)
        timelineId: "timeline",     // Id of timeline div element (required)
        options: {
            mapTypeControl: true,
                panControl: true,
                zoomControl: true,
                scaleControl: true,

Juan Manuel Andrade

unread,
Nov 23, 2013, 10:45:43 PM11/23/13
to timemap-d...@googlegroups.com
Having the same issue here, actually gmap controls have been off air in timemap since many time ago, no idea how to solve this :(

Veronika Priesner

unread,
Dec 11, 2013, 9:11:55 AM12/11/13
to timemap-d...@googlegroups.com
Found the issue!

The problem comes from http://timemap.googlecode.com/svn/tags/2.0.1/lib/mxn/mxn.googlev3.core.js still containing "navigationControl" where it should say "zoomControl" and so on. To see all the changes that need to be made, go to https://github.com/mapstraction/mxn/pull/257/files.

Reply all
Reply to author
Forward
0 new messages