Merge pull request #5 from Iconica-Development/bugfix/web_error

fix: Added web part to the README that explains what to do to resolve the following error: "TypeError: Cannot read properties of undefined (reading 'maps')"
This commit is contained in:
Gorter-dev 2023-11-01 16:42:43 +01:00 committed by GitHub
commit 641a28288d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 1 deletions

View file

@ -1,3 +1,6 @@
2.0.1
* Fix: Updated the README.md to show how to properly set up the index.html for use in web
1.1.0
* Feature: Optional parameter `retrieveDirections` to disable directions api calls
* Fix: Issue with json conversion google map theme.

View file

@ -106,6 +106,19 @@ import GoogleMaps
}
}
```
### WEB
Add the following code in the 'head' of 'web/index.html':
```html
<head>
<!-- // Other stuff -->
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
</head>
```
## Usage

View file

@ -1,6 +1,6 @@
name: flutter_google_track_and_trace
description: An Iconica Flutter plugin for Track & Trace Package
version: 2.0.0
version: 2.0.1
environment:
sdk: ">=2.14.0 <3.0.0"