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

Zoom property $zoom is not working in the Google Map Widget #121

Closed
kingmaker-agm opened this issue Sep 29, 2024 · 3 comments
Closed

Zoom property $zoom is not working in the Google Map Widget #121

kingmaker-agm opened this issue Sep 29, 2024 · 3 comments

Comments

@kingmaker-agm
Copy link

Issue

I'm using the Google Map Widget (extending Cheesegrits\FilamentGoogleMaps\Widgets\MapWidget) in my Filament App.

I have set the Zoom value using the class property.

protected static ?int $zoom = 8;

Expected Behavior

The Google Map widget would have Zoom out (to the level of 8)

Actual Behavior

But the Zoom values are not reflected in the rendered Widget. The Map is Zoomed In to the maximum level (level 20)

Example

Actual Screenshot

Other Questions

I have a Couple more questions regarding the Map Widget as well.

  1. How can I change the data (obtained from the $this->getData()) to be reflected in the displayed Map?
  2. How to programmatically update the Markers in the Widget from within the Widget class?
@navidsafavi
Copy link

@kingmaker-agm use this option
protected static ?bool $fitToBounds = false;

@kingmaker-agm
Copy link
Author

This helped me to solve the Issue.

@kingmaker-agm
Copy link
Author

Can someone help me with the Questions in the Issue #122 ?

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

2 participants