forked from flutter/packages
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[google_maps_flutter_web] Add marker clustering support (flutter#6187)
This PR introduces support for marker clustering for Web platform This is prequel PR for: flutter#4319 and sequel PR for: flutter#6158 Containing only changes to `google_maps_flutter_web` package. Follow up PR will hold the app-facing plugin implementation. Linked issue: flutter/flutter#26863 --------- Co-authored-by: David Iglesias Teixeira <[email protected]>
- Loading branch information
Showing
20 changed files
with
657 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,3 +65,4 @@ Anton Borries <[email protected]> | |
Alex Li <[email protected]> | ||
Rahul Raj <[email protected]> | ||
Justin Baumann <[email protected]> | ||
Joonas Kerttula <[email protected]> |
4 changes: 4 additions & 0 deletions
4
packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 0.5.7 | ||
|
||
* Adds support for marker clustering. | ||
|
||
## 0.5.6+2 | ||
|
||
* Uses `TrustedTypes` from `web: ^0.5.1`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,19 @@ To request multiple libraries, separate them with commas: | |
|
||
Now you should be able to use the Google Maps plugin normally. | ||
|
||
## Marker clustering | ||
|
||
If you need marker clustering support, modify the <head> tag to load the [js-markerclusterer](https://github.com/googlemaps/js-markerclusterer#install) library. Ensure you are using the currently supported version `2.5.3`, like so: | ||
|
||
```html | ||
<head> | ||
|
||
<!-- // Other stuff --> | ||
|
||
<script src="https://unpkg.com/@googlemaps/[email protected]/dist/index.min.js"></script> | ||
</head> | ||
``` | ||
|
||
## Limitations of the web version | ||
|
||
The following map options are not available in web, because the map doesn't rotate there: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.