How to add an interactive map in Filament?

I am trying to add a map that I can choose with polygon as in the picture

For this, I created a field with a class and added my necessary codes to the blade file.

But I cannot run it. the map does not load.

Or if there is a map you can suggest, I can also use it where I can choose polygon.

           MapboxPolygonField::make('polygon_coordinates')
                    ->label('Polygon Coordinates')
                    ->visible(fn (Get $get) => $get('region_scope') === 'mapbox_maps_polygon'),
Screenshot_37.png
Screenshot_38.png
Screenshot_39.png
Screenshot_40.png
Was this page helpful?