sterna

Creator: coderz1093

Last updated:

0 purchases

sterna Image
sterna Images

Languages

Categories

Add to Cart

Description:

sterna

sterna #
Moving map for Flutter.
This project is not stable yet. API may change.
Features #

Moving map tailored for navigation apps
Camera animation
Camera focal alignment
Asynchronous marker resolution when map bounds change
Auto zoom to fit markers
Implemented with RenderObject to optimise performance.
Plain dart code with no dependencies. Supports Android, IOS and Web.

Usage #
SternaMap(
controller: MapController(initialCameraFocal: Latlng(45.6391, 5.8800)),
children: <Widget>[
TileLayer(
delegate: RasterTileLayerChildDelegate.osm(),
),
Layer(children: <Widget>[
Marker(center: Latlng(45.6391, 5.8800)),
]),
MarkerLayer(
delegate: MarkerLayerChildResolverDelegate(
resolver: (bounds) async => BuilderBundle<Latlng>(
iterable: [Latlng(45.6391, 5.9769)].where(bounds.contains),
builder: (_, latlng) => Marker(
key: ValueKey(latlng),
center: latlng,
),
),
),
),
],
);
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.