custom_google_map_markers 0.0.1 copy "custom_google_map_markers: ^0.0.1" to clipboard
custom_google_map_markers: ^0.0.1 copied to clipboard

custom marker popup for flutter google maps.

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)

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
2
likes
20
pub points
0%
popularity

Publisher

unverified uploader

custom marker popup for flutter google maps.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, google_maps_flutter

More

Packages that depend on custom_google_map_markers