MapShapeSource.network constructor
      const
      MapShapeSource.network(
    
- String src, {
- String? shapeDataField,
- int dataCount = 0,
- IndexedStringValueMapper? primaryValueMapper,
- List<MapColorMapper> ? shapeColorMappers,
- List<MapColorMapper> ? bubbleColorMappers,
- IndexedStringValueMapper? dataLabelMapper,
- IndexedDoubleValueMapper? bubbleSizeMapper,
- IndexedColorValueMapper? shapeColorValueMapper,
- IndexedColorValueMapper? bubbleColorValueMapper,
Creates a layer using the .json file from the network.
late MapShapeSource _mapSource;
@override
void initState() {
  _mapSource = MapShapeSource.network(
    'http://www.json-generator.com/api/json/get/bVqXoJvfjC?indent=2',
  );
  super.initState();
}
@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(
      title: Text('Network sample'),
    ),
    body: SfMaps(
      layers: [
        MapShapeLayer(
          source: _mapSource,
        ),
      ],
    ),
  );
}
Implementation
const MapShapeSource.network(
  String src, {
  this.shapeDataField,
  this.dataCount = 0,
  this.primaryValueMapper,
  this.shapeColorMappers,
  this.bubbleColorMappers,
  this.dataLabelMapper,
  this.bubbleSizeMapper,
  this.shapeColorValueMapper,
  this.bubbleColorValueMapper,
}) : _path = src,
     _type = GeoJSONSourceType.network,
     assert(
       (primaryValueMapper != null && dataCount > 0) ||
           primaryValueMapper == null,
     ),
     assert(
       (shapeColorMappers != null &&
               primaryValueMapper != null &&
               shapeColorValueMapper != null) ||
           shapeColorMappers == null,
     ),
     assert(
       (bubbleColorMappers != null &&
               primaryValueMapper != null &&
               bubbleColorValueMapper != null) ||
           bubbleColorMappers == null,
     );