Skip to content

map_options change type doesn't work #563

@miguelms95

Description

@miguelms95

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'}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions