google-maps-flutter

How can user add multiple marker on google maps flutter

徘徊边缘 提交于 2019-12-11 16:42:59
问题 How can the user add multiple markers when user long press on the map. in this code, I've done single map. when user long press on the map it will automatically add one marker but I don't know how I can add multiple markers on the map. I tried lots of codes but I am not getting the proper result. hope you understand the question. your small help can make my day. Thanks in advance. Here is the code I've tried :) import 'package:flutter/material.dart'; import 'package:geocoder/geocoder.dart';

Using Polyline for making custom route with google_maps_flutter plugin - Flutter

眉间皱痕 提交于 2019-12-10 12:14:30
问题 google_maps_flutter 0.5.6 Added support for Polylines on GoogleMap . But there is no code or documentation available under my view. A plugin named maps_view exists which supports polylines import 'package:map_view/map_view.dart'; import 'package:map_view/polyline.dart'; ... MapView mapView = MapView(); mapView.addPolyline(Polyline('my_polyline', [ Location(45.52309483308097, -122.67339684069155), Location(45.52298442915803, -122.66339991241693), ])); I need the same function that's built-in