Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid is undefined #27

Open
b3nhartl3y opened this issue Apr 26, 2013 · 1 comment
Open

Grid is undefined #27

b3nhartl3y opened this issue Apr 26, 2013 · 1 comment

Comments

@b3nhartl3y
Copy link

Ok after masterfully and flukily getting the map style to work from the JSON settings on the google map creator, I'm running into a JS error cause the map to be unzoomable/dragable.

I'm getting a "grid is undefined" error caused by markermanager.js. It doesn't seem to be playing nicely with map_config in the JS call. I currently have:

    map_config: {
navigationControlOptions: {
            style: google.maps.NavigationControlStyle.ZOOM_PAN
        },
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        styles: [
                  {
                    "featureType": "water",
                    "stylers": [
                      { "color": "#94aea7" }
                    ]
                  },{
                    "featureType": "road.highway",
                    "elementType": "geometry",
                    "stylers": [
                      { "weight": 0.3 },
                      { "color": "#90c67c" },
                      { "saturation": -15 }
                    ]
                  },{
                    "featureType": "road.arterial",
                    "stylers": [
                      { "visibility": "on" },
                      { "saturation": -77 },
                      { "color": "#ffffff" }
                    ]
                  },{
                    "featureType": "landscape",
                    "stylers": [
                      { "color": "#e2e7f1" }
                    ]
                  },{
                    "featureType": "poi",
                    "stylers": [
                      { "visibility": "off" }
                    ]
                  }
                ]

    }
  });

The style is created, it looks lovely, but the map doesn't scroll. I've read somewhere that I have to initiate the grid/marker manager somewhere after the page has loaded but I'm a bit lost. Anyone come across this before?

Many thanks.

@mokolabs
Copy link
Contributor

Check out Issue #10 . I had a similar problem... and the fix for that issue worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants