Last active
November 2, 2022 07:54
-
-
Save jgadjetx/f69971a8786d55a9729fba146c041dcb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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