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

map_options change type doesn't work #563

Open
miguelms95 opened this issue Mar 21, 2019 · 0 comments
Open

map_options change type doesn't work #563

miguelms95 opened this issue Mar 21, 2019 · 0 comments

Comments

@miguelms95
Copy link

Hi, i'm trying to set the map type to satellite, this is my code:

var handler = Gmaps.build('Google');
  handler.buildMap({ provider: {}, internal: {id: 'map'}, map_options: {type: 'SATELLITE'}}, function(){
    markers = handler.addMarkers([
      {
        "lat": #{@myplace.latitude},
        "lng": #{@myplace.longitude},
        "infowindow": "hi!"
      }
    ]);
    handler.bounds.extendWith(markers);
    handler.fitMapToBounds();

  });

It's not working... map_options: {type: 'SATELLITE'}.

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

1 participant