Skip to content

Instantly share code, notes, and snippets.

@jgadjetx
Last active November 2, 2022 07:54
Show Gist options
  • Save jgadjetx/f69971a8786d55a9729fba146c041dcb to your computer and use it in GitHub Desktop.
Save jgadjetx/f69971a8786d55a9729fba146c041dcb to your computer and use it in GitHub Desktop.
return FlutterMap(
options: MapOptions(
maxZoom: 2,
minZoom: -3,
crs: CrsSimple(),
center: LatLng(0,0),
interactiveFlags: InteractiveFlag.pinchZoom | InteractiveFlag.drag,
enableMultiFingerGestureRace: false,
zoom: -3,
onTap: (tapPosition, latlong) async {
print(latlong.latitude);
print(latlong.longitude);
},
),
children: [
TileLayer(
urlTemplate: "https://tiles.eaimms.com/diagrams/examples/hms_hood/tiles/{z}/{x}/{y}/tile.png",
tileProvider: NetworkTileProvider(),
maxZoom: 2,
minZoom: -3,
),
]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment