-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/plugins
#3093Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listd: examplesSample code and demosSample code and demosp: mapsGoogle Maps pluginGoogle Maps pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-webWeb applications specificallyWeb applications specifically
Milestone
Description
It seems POLYLINES are not supported. I can see it on Mobile but not on the web.
Here is what my code looks like:
GoogleMap(
gestureRecognizers: Set()
..add(Factory<PanGestureRecognizer>(() => PanGestureRecognizer()))
..add(Factory<ScaleGestureRecognizer>(() => ScaleGestureRecognizer()))
..add(Factory<TapGestureRecognizer>(() => TapGestureRecognizer()))
..add(Factory<VerticalDragGestureRecognizer>(
() => VerticalDragGestureRecognizer())),
tiltGesturesEnabled: true,
myLocationEnabled: true,
myLocationButtonEnabled: true,
mapToolbarEnabled: true,
buildingsEnabled: true,
markers: _markers,
polylines: [
Polyline(
width: 4,
polylineId: PolylineId("1"),
color: userLocation.urgencyColor,
points: [
LatLng(userLocation.latitude, userLocation.longitude),
UserLocation.kaaba,
],
)
].toSet(),
mapType: widget.mapType,
zoomGesturesEnabled: true,
scrollGesturesEnabled: true,
rotateGesturesEnabled: true,
compassEnabled: true,
onMapCreated: _onMapCreated,
initialCameraPosition: CameraPosition(
target: LatLng(userLocation.latitude, userLocation.longitude),
zoom: 19.0,
),
),
);
}Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listd: examplesSample code and demosSample code and demosp: mapsGoogle Maps pluginGoogle Maps pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-webWeb applications specificallyWeb applications specifically