215 questions
0
votes
1
answer
122
views
How to add a marker in mapsforge_flutter?
I am using the mapsforge_flutter package to display an offline .map file.
I want to add a marker (for example, a pin at a specific latitude/longitude), but I cannot find a clear example in the ...
0
votes
1
answer
96
views
How can a widget be displayed alone if it overlaps others?
I have three cards positioned 10 pixels from the bottom-left corner within a Stack as follows:
Positioned(
bottom: 10,
left: 10,
child: Card(
elevation: 0,
color: Colors.white,
child:...
0
votes
1
answer
107
views
GeoJSON polygon filtering example based on attribute
I tested the neat flutter_map_geojson2 package to display GeoJSON files and it works nicely. However, I am wondering how a GeoJSON file with polygons can be filtered to display polygons painted with ...
0
votes
1
answer
69
views
GeoJSON displayed when checkbox is checked in flutter_map
Being new in the flutter world, I am wondering if someone can give me a hand with the following issue. I want to display a GeoJSON after a checkbox is checked but not sure how to call it:
...
0
votes
0
answers
89
views
Use flutter-map to load Baidu Map tiles
The tile slicing rules of map services like Google, Gaode, and OpenStreetMap (OSM) differ from those of Baidu Maps primarily in two aspects:
Origin of the Tile Coordinate System:
For Google, Gaode, ...
0
votes
0
answers
107
views
Flutter map using Mapsforge
I'm trying to implement an offline map viewer in Flutter using the mapsforge_flutter package. I've followed various examples and attempted to render .map files manually. However, I'm encountering many ...
0
votes
0
answers
74
views
Displaying layers from GeoServer in FlutterMap as WMTS
I have installed GeoServer locally (as a Docker container) and it is working just fine. I can access the admin interface and I can see different layers by using the layer preview in a browser.
I am ...
0
votes
0
answers
91
views
Flutter Mapbox v4 Vector Tiles
I'm trying to use MapBox Vector tiles v4 according documentation: but something is wrong. I was able to use the normal tiles but they are expensive.
final vectorUrlTemplate = (_isSatelliteView
? '...
1
vote
0
answers
126
views
FlutterMap Not Dragging and Showing Grey Screen on Pinch Gesture
I am using the flutter_map package in my Flutter project, and I am encountering an issue where the map does not drag; and when I pinch to zoom, the map turns into a grey screen. The first tile loads ...
0
votes
0
answers
45
views
Flutter map route drawing
How to improve the removal of the passed route, currently it doesnt work good - the route line is sometimes still shown even though it shouldn't be
im using flutter_map and osm
void ...
1
vote
2
answers
109
views
Flutter Map Polyline and current user movement. How to hide distance cover in the polyline while navigating
I'm building a flutter navigation app using flutter_map, routing_client_dart and openstreetMap. I've managed to listen to live location and update it accordingly. Currently I'm displaying the polyline ...
0
votes
1
answer
56
views
"flutter_map" does not show map everytimes (map hides sometimes)
What is the bug?
Hello.
I'm using flutter_map: ^8.1.1 like follow:
return StreamBuilder<
List<Marker>>(
...
0
votes
1
answer
80
views
get geo coordinates (LatLng) for Container() stacked on FlutterMap()
I have an App developed using Flutter.
I use
return Scaffold(
body: Stack(
children: [
FlutterMap(...),
Positioned(
bottom: 20,
right: 0,
child: Container(
...
0
votes
0
answers
72
views
Avoid flutter Consumer widget children rebuild
I am developing an app allowing to download maps of regions and show either on a map (using flutter_map) or in a list view. While downloading a map, a progress bar must be displayed on the list view, ...
0
votes
1
answer
124
views
moving the map with search location
I am recently integating the Google maps and places api and all is working but i am getting this problem that when i searches the place and suggestions come along with them but when i selects any of ...
-1
votes
1
answer
237
views
iOS App - Runs great on first install, poor network subsequent runs, restarting 4 times in a row "fixes" it (until next time)
I made a mobile app using Flutter. This app is data heavy (API and map tiles).
It always works on Android, iOS simulators, and Windows.
But on a physical iOS device, (both release and debug modes), ...
-1
votes
1
answer
327
views
Flutter map and polylines route
I am currently coding in flutter framework, and trying to get familiar with flutter_map, polylines and markers along with the route service. I have written the following code, but it keeps giving me ...
0
votes
1
answer
152
views
Upgrading flutter_map code to current version
I recently upgraded my flutter_map version from 3.0.0 to 7.0.2 and a lot of errors appeared on the old I have. How do do I upgrade the current code I have to the latest package version.
Below is the ...
-1
votes
1
answer
64
views
Hi , I'm having an error with MarkerLayer with flutter
When i try to display a showdialog inside another widget i get a The named parameter 'builder' isn't defined.
Try correcting the name to an existing named parameter's name, or defining a named ...
-1
votes
2
answers
757
views
how do i get different map types on flutter
I am using fluttermaps to get the basic OSM (OpenStreetMap) layer to appear. it works but I am trying to add more options. Does anyone have any tips on where to go.
I have this so far and its working ...
0
votes
0
answers
331
views
Flutter draw line with custom pattern in Map
Is it possible to draw a line in Flutter with a complete custom pattern that repeats itself along the line? For example, I want to have this pattern:
So if I draw a straight line, it should like like ...
1
vote
1
answer
66
views
Map for Multi List entry
I have dynamic list have multi value as dynamic number needs to convert to string like below example. when I test it in dartpad it will work only if I have one entry in (listN) but when I have multi ...
1
vote
1
answer
334
views
ClientException with SocketException: Failed host lookup: 'tile.openstreetmap.org' (OS Error: nodename nor servname provided, or not known, errno = 8)
I'm using flutter_map and geolocator to access an user's location and display it on openstreetmap. The problem is that after some scrolling on the map, this error (Ios simulator: ios 17.5 with iphone ...
-1
votes
2
answers
447
views
GestureDetector on markers of Flutter_map isnt working
I'm trying to create a map using flutter_maps, but when I add a GestureDetector to the markers, some errors appear
MarkerLayer(
markers: [
Marker(
...
0
votes
1
answer
1k
views
View Geojson on flutter_map
I want to display Geojson data on a map to draw polygons and points
I used Flutter_map library: ^4.0.0
I tried converting from geojson to latlng and did not find a way
The libraries that should help ...
1
vote
1
answer
396
views
Rotating an ImageOverlay specified with longitude/latitude corners in OpenStreetMap in Flutter
I have an image placed using flutter_map in Flutter, which is positioned using NW/SE corner longitude/latitudes. I need to rotate this image around its centre a specified number of degrees - I do this ...
0
votes
1
answer
542
views
How to add map using package flutter_map?
I`m using package flutter_map to add map in my app (I do step by step in this video). My code like this:
FlutterMap(
mapController: mapController,
options: MapOptions(
initialCenter: const ...
0
votes
1
answer
108
views
How to make a Polyline invisible?
Am using flutter_map and at first i set up couple of markers and polylines in a way that a when a certain marker is pressed a certain polyline would show up.
My problem is after that whenever i click ...
1
vote
0
answers
217
views
Flutter Map: How can I draw a circle around the user's location marker?
How I could draw a circle around a CurrentLocationLayer from the package flutter_map_location_marker?
This is what I have so far:
Widget userLocationMarker(){
return CurrentLocationLayer(
...
1
vote
0
answers
399
views
Flutter Map - How can I let the user draw a circle?
I'm trying to let the user drag across the screen to draw a circle. initial point of the drag would set the center and the final point of the drag would set the radius.
I know I could easily do this ...
2
votes
1
answer
438
views
flutter_map marker movement
I'm using flutter_map to show map and some vehicles within marker layer.
I get update with their position coordinates every 5 seconds. Is there any way to animate vehicle movement between this ...
0
votes
1
answer
1k
views
Flutter and flutter_map: labels rotate when map is rotating
I would like to add a map view to my Flutter app and was considering between google maps and flutter_map with Mapbox. Since custom markers seem to be a problem with Google Map and Flutter I decided to ...
0
votes
1
answer
138
views
Is there a simple way of applying blur to shapes in syncfusion_flutter_maps?
So I am using syncfusion_flutter_maps for a simple map app and I want certain areas on the map to be darkened and blurred out. I figured quite quickly how to do the darkening part with something as ...
1
vote
1
answer
680
views
Flutter_map ClientException with SocketException
I'm adding the "flutter_map" package to display OpenStreetMap on Android and iOS.
It's working when I call mapcontroller.move, but I get an exception when zooming with finger gestures on iOS....
1
vote
0
answers
241
views
Fluttermap: Is there any way to make a polygon fill as an image?
I'm new to flutter.
I want to make a mobile application where flags of countries will be shown as polygons.
That is, the boundaries of the polygons will be the boundaries of countries, and the country ...
0
votes
1
answer
391
views
How to display a Chinese map in Flutter web?
I need to show the location of a residential area in China in a Flutter Web app as a Widget. OpenStreetMap and other Western map providers like Google and Bing are insufficient because they do not ...
1
vote
1
answer
138
views
flutterMap remove the white stripes at the top and bottom
when using the flutter_map library, white stripes are displayed when scrolling the map up or down
(https://i.sstatic.net/KGyhJ.png)
How to make the map height equal to the screen height
when changing ...
0
votes
1
answer
2k
views
Error: Type 'DecoderCallback' not found flutter_map: ^0.13.1
Ihave this error:
../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_map-0.13.1/lib/src/layer/tile_provider/network_image_with_retry.dart:36:34: Error: Type 'DecoderCallback' not found.
...
0
votes
1
answer
956
views
Flutter Map - Enlarge LatLngBounds by a certains percent/pixel
I have a map with some clusters, but the clusters are cut when I'm using LatLngBounds to center the map. I need to add a padding to ensure that all the clusters are visible.
I try using this answer. ...
0
votes
1
answer
79
views
passing data or parameters from embedded file to main page in flutter
To be able to easily explain what I need, I prepared the following image.
Shortly,
I have a homepage.dart page and I embedded a map1.dart page into it.
when user taps on the map, it creates a small ...
1
vote
1
answer
982
views
FlutterFlow Custom Widget Error - Implementing flutter_map package from pub.dev
Summary:
I'm attempting to build a custom widget in FlutterFlow using the flutter_map package from pub.dev. I think I'm getting pretty close to having the basic build working, but it is throwing an ...
0
votes
1
answer
1k
views
Flutter iOS Emulator 'Failed Host Lookup' Error
Hello fellow developers
I'm developing a location-sharing application with Flutter.
When I launch the iOS emulator, I encounter a 'Failed host lookup' error.
This issue is happening for both the map ...
-2
votes
1
answer
783
views
Error when using OpenStreetMap on Flutter
How to fix this error?
Error : lib/pages/osmmapstest.dart:17:9: Error: No named parameter with the name 'layers'.
layers: [
/C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_map-6.0....
0
votes
1
answer
155
views
Using ListView in Stack on top of FlutterMap widget - Map is not showing
I would like to implement horizontal scrallable ListView widget on top of FlutterMap widget.
When I am using most of widgets, they are displayed in Stack (on top of) that FlutterMap, but as soon as I ...
0
votes
1
answer
287
views
Flutter Map, Controller lost in modal
I'm trying to open a modal in a flutter_map to create relocating shortcut.
I try to send the flutter_map context into the modal, but when I'm in. If I click on it , it tell me, that it can't find a ...
1
vote
2
answers
182
views
Null check operator used on a null value . where is the problem
i want to show a map with marker on the user current location but it won't for some reason
the map work well but the marker for the user when i try to show it i face this error
am facing the error in ...
0
votes
1
answer
407
views
Flutter : geolocator dependecy issues - Build error
I'm getting the below error while building my flutter application itself.
C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev\geolocator_android-4.2.2\android\src\main\java\com\baseflow\geolocator\...
0
votes
1
answer
372
views
I flutter_map, how to handle map dragged away from user marker?
I use a combination of flutter_map and flutter_map_location_marker.
flutter_map_location_marker Lets me display a marker corresponding to the user's position, and orientation. It lets me also center ...
0
votes
1
answer
414
views
Flutter Invalid argument(s): No host specified in URI in Flutter_map
I'm creating a map in an Android application using flutter_map package and using MapBox, I was actually trying to get a vector tile but always ended up making a raster tile anyway so I gave up on it ...
0
votes
0
answers
336
views
FlutterMap location only updating every second
I am developing a Flutter application that uses a ticker to reflect location updates on a map. Currently, the location updates on the map occur every second, which results in a jerky user experience. ...