custom_google_map_markers

Creator: coderz1093

Last updated:

0 purchases

custom_google_map_markers Image
custom_google_map_markers Images

Languages

Categories

Add to Cart

Description:

custom google map markers

custom_map_markers #
custom marker infowindow and icons, tested on android only right now
you want to load icons somewhere before the widget draws
MarkerIcons.instance.loadIcon(assetPath, assetName)
copied to clipboard
Popup takes a widget, recommended constraints (100,150)
usually you want to reuse the same popup
Marker(
markerId: id,
position: latlng,
icon: MarkerIcons.instance.[assetName],
onTap: popup.onTap(
{@required BuildContext context,
@required GoogleMapController googleMapController,
@required LatLng position,
@required double popupWidth,
@required double popupOffset,
@required Widget widget,}
)
);```

put PopupLayer in a Stack widget on top of the map like so
```Stack(children: <Widget>[
PopupLayer(popup, mapcontroller)
googleMap]
)```
```GoogleMap(
onTap: popup.tapAway(),
onCameraMove: popup.handleCameraMove(),
)```

todo: example, docs, tests
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.