buildLayer method
override this function for every map layers
Implementation
@override
Widget buildLayer(BuildContext context, MapState map) {
if (map.location == null) {
return Container();
}
double scale = map.getZoomScale(map.zoom, map.zoom);
UPoint locationPoint = map.project(map.position) * scale - map.pixelOrigin;
Offset location = map.pointToOffset(locationPoint);
return AnimatedIndicator(
location: location,
overlayRadius: map.options.live ? overlayRadius : 0,
ringRadius: ringRadius,
radius: radius,
color: color,
animate: animate && map.isLocating,
);
}