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

[Question] Migration to Cloud Maps Styles #1793

Open
roman-rr opened this issue Jul 30, 2024 · 0 comments
Open

[Question] Migration to Cloud Maps Styles #1793

roman-rr opened this issue Jul 30, 2024 · 0 comments

Comments

@roman-rr
Copy link

Hello, everyone! 👋
I has been noticed recently that there is migration to Cloud Map as on March of 2025.

I'm currently using hardcoded styling at my app, like so:

const mapOptions = {
    center: { lat: -33.8688, lng: 151.2195 },
    zoom: 12,
    styles: [
          {
              featureType: 'water',
              elementType: 'geometry',
              stylers: [
                  {
                      color: '#e9e9e9'
                  },
                  {
                      lightness: 17
                  }
              ]
          },
          {
              featureType: 'landscape',
              elementType: 'geometry',
              stylers: [
                  {
                      color: '#f5f5f5'
                  },
                  {
                      lightness: 20
                  }
              ]
          }
 ]
};

const map = new google.maps.Map(document.getElementById('map'), mapOptions);

Questions

  1. Will I be able to use hard-coded styling of maps after March of 2025?
  2. Can I import a JSON with my style to create a new Cloud Map Style?

I'm confused about migration to Cloud Styles and I'm not sure how to import my hard-coded styles.

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