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 7630635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:09:08+00:00 2026-05-31T06:09:08+00:00

I have been using google maps for a web app where we enter our

  • 0

I have been using google maps for a web app where we enter our own custom location data for markers, and have been noticing that in higher zoom settings, the google maps data shines through, literally taking away the whole point of having custom map data.

I am using gmaps4rails, and have the gmaps JSON code, from the Google Maps API v3 Styled Maps JSON editor, and cannot get the right callback area for this.

Any ideas where I should be placing this? The callback is not allowing for this to work. (and I suck at JS)

Thanks!

  • 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-31T06:09:09+00:00Added an answer on May 31, 2026 at 6:09 am

    Ok I took an example from here. Just do:

    <script type="text/javascript" charset="utf-8">
    Gmaps.map.callback = function() {
    var pinkParksStyles = [
      {
        featureType: "all",
        stylers: [
          { saturation: -80 }
        ]
      },
      {
        featureType: "poi.park",
        stylers: [
          { hue: "#ff0023" },
          { saturation: 40 }
        ]
       }
      ];
    
      Gmaps.map.map.setOptions({styles: pinkParksStyles});
    }
    </script>
    

    Another solution instead of using the callback:

    <script type="text/javascript" charset="utf-8">
    var pinkParksStyles = [
      {
        featureType: "all",
        stylers: [
          { saturation: -80 }
        ]
      },
      {
        featureType: "poi.park",
        stylers: [
          { hue: "#ff0023" },
          { saturation: 40 }
        ]
      }
    ];
    </script>
    
    <%= gmaps(:map_options => { :raw => "{styles: pinkParksStyles}" },
              #... whatever you need
        )
    %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Google Maps api on my website and I have been
I'm working on a web app with google maps and using getCurrentPosition() to get
We have been using Google Code SVN to store a school project. As we
I have been searching around using Google but I can't find an answer to
I am using google maps api to place markers on a map. The gps
I have been trying to compile the project from http://www.shabdar.org/google-maps-user-control-for-ASP-Net-part1.html but it is complaining
Using the Google Maps API v3 I've been able to update multiple positions of
I have an application using the Google maps - until the moment it works
Greetings, Until now I have mostly been working with google maps v2. I am
So I have been looking at Google Maps and they have the feature of

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.