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

Add mapkick_options to location field #3593

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

Nevelito
Copy link
Contributor

@Nevelito Nevelito commented Jan 17, 2025

Description

Fixes #3147

Allows to configure mapkick_options on location field

field :coordinates,
  as: :location,
  stored_as: [:latitude, :longitude],
  mapkick_options: {
    style: 'mapbox://styles/mapbox/satellite-v9',
    controls: true
  }

image

Checklist:

Copy link

codeclimate bot commented Jan 17, 2025

Code Climate has analyzed commit f381006 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Contributor

@Paul-Bob Paul-Bob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thank you for this contribution @Nevelito!

@Paul-Bob Paul-Bob added the Enhancement Not necessarily a feature, but something has improved label Jan 20, 2025
@Paul-Bob Paul-Bob changed the title Add mapkick options to location field Add mapkick_options to location field Jan 20, 2025
@Paul-Bob Paul-Bob merged commit 3dfd9e7 into avo-hq:main Jan 20, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Not necessarily a feature, but something has improved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pass mapkick_options to location field
2 participants