Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7698769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:19:11+00:00 2026-05-31T22:19:11+00:00

How do I set gmaps4rails to show Terrain view directly or by default for

  • 0

How do I set gmaps4rails to show Terrain view directly or by default for the whole application?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:19:12+00:00Added an answer on May 31, 2026 at 10:19 pm

    The defaults used for the map are these:

    container_id:        "map_container",
    id:               "map",
    type:             "ROADMAP",   // HYBRID, ROADMAP, SATELLITE, TERRAIN
    center_latitude : 0,
    center_longitude: 0,
    disableDefaultUI: false,
    disableDoubleClickZoom: false,    
    draggable: true,
    mapTypeControl:  null,        // display the map type dropdown, unless set to false it will be displayed
    detect_location: false,        // should the browser attempt to use geolocation detection features of HTML5?
    center_on_user: false,         // centers map on the location detected through the browser
    zoom :            1,           // initial zoom
    maxZoom:       null,           //max zoom level
    minZoom:       null,           //min zoom level   
    auto_adjust:   true,           //adjust the map to the markers if set to true
    auto_zoom:     true            //comes with auto_adjust. Choose whether or not you want to use an automatic zoom or the one you set in the 'zoom' option.
    bounds:  []                    //adjust map to these limits. Should be [{"lat": , "lng": }, {"lat": , "lng": } ...]
    

    I am not sure how to override the default for the whole application, but you canchange from ROADMAP to TERRAIN in the views:

    <%= gmaps({"map_options" => { type => "TERRAIN" })%> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER VIEW [dbo].[viewProductExportUpdated2] AS SELECT dbo.ProductCategories.ProductCategoryID
set application [::tcom::ref createobject Excel.Application] $application Visible 1 set workbooks [$application Workbooks] set workbook
set visible = true then message box show it is false delegate void LoadLastDeptSettingDelegate(String
//Set default values $('#name').val('First Last'); $('#email').val('you@email.com'); $('#subject').val('Subject'); $('#message').val('Message'); //Change style when user types $('#name,#email,#subject,#message').keypress(function()
I am using gmaps4rails and I have a set of dynamic generated markers, about
:set ic ignores the case. How do you unset this?
Set<Type> union = new HashSet<Type>(s1); union.addAll(s2); AND Set <Type> union = new HashSet<Type>(); union.addAll(s1);
Set content of table ... ViewState[Table1] = Table1; // When remove this line, table
I set up a website to use SqlMembershipProvider as written on this page .
I set a passphrase when creating a new SSH key on my laptop. But,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.