A Flutter app for loading location coordinates from assets file and drawing markers on the map for analysis.
Note: This project will only run on flutter beta channel.
- Add your Google MAPS API key enabled for JavaScript here:
void main() {
GoogleMap.init('YOUR_API_KEY');
WidgetsFlutterBinding.ensureInitialized();
runApp(MyApp());
}
- Add API key in index.html file present in web directory:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>flutter_google_maps_example</title>
</head>
<body>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
<script src="main.dart.js" type="application/javascript"></script>
</body>
</html>
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.