avo-hq / avo

Build Ruby on Rails apps 10x faster
https://avohq.io
Other
1.52k stars 253 forks source link

pass mapkick_options to location field #3147

Open pjmuller opened 2 months ago

pjmuller commented 2 months ago

Feature

The area field (which uses mapbox) under the hood allows the pass mapkick_options see https://github.com/avo-hq/main.avodemo.com/blob/main/app/avo/resources/city.rb#L30

please do this as well for the location field.

def fields
    field :coordinates, as: :location, 
      mapkick_options: {
        style: "mapbox://styles/mapbox/satellite-v9",
        controls: true,
        zoom: 1,
      }
end

Current workarounds

None

Additional context

Would be great to pass options like

github-actions[bot] commented 2 months ago

This issue has been marked as stale because there was no activity for the past 15 days.

github-actions[bot] commented 1 month ago

This issue has been marked as stale because there was no activity for the past 15 days.

github-actions[bot] commented 1 month ago

This issue has been marked as stale because there was no activity for the past 15 days.

github-actions[bot] commented 2 weeks ago

This issue has been marked as stale because there was no activity for the past 15 days.