0

这是我的代码

            FlutterMap(
                  mapController: mapController,
                  options: MapOptions(
                    controller: mapController,
                    center: LatLng(33.680088056393814, 72.7987044426807),
                    zoom: 14,
                    maxZoom: 18,
                    onTap: (p, k) {
                      final bounds = mapController.bounds;
                      var a = mapController;
                      var sw = epsg3413CRS.projection.project(bounds.southWest!);
                      var ne = epsg3413CRS.projection.project(bounds.northEast!);
                      print('Map bounds:sw.x:  ${sw.x},${sw.y},${ne.x},${ne.y}');

                    },
                  ),
                  layers: layerz,
                ),

我搜索了很多,但经过太多努力,我只得到了用于 api 的 BBOX。但其他参数是剩余的 x、y、高度、宽度等

4

0 回答 0