Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 在颤振Web中显示地图_Flutter_Dictionary_Dart_Openstreetmap_Flutter Web - Fatal编程技术网

Flutter 在颤振Web中显示地图

Flutter 在颤振Web中显示地图,flutter,dictionary,dart,openstreetmap,flutter-web,Flutter,Dictionary,Dart,Openstreetmap,Flutter Web,我尝试在FlatterWeb中加载地图,但除了google地图之外,web上没有可用的地图库(我必须为此支付预算(账单)) 有免费的解决方案吗?有多种解决方案: 1.1:在pubspec.ymal中添加颤振图 1.2:将flatterMap(TileLayerWidget(TileLayerOptions(urlTemplate:“”))添加到您想要的任何页面 1.3:在urltemplate添加您感兴趣的地图地址提供程序中。例如,OSM映射磁贴地址提供程序是 "https://{s}

我尝试在FlatterWeb中加载地图,但除了google地图之外,web上没有可用的地图库(我必须为此支付预算(账单))


有免费的解决方案吗?

有多种解决方案:

1.1:在pubspec.ymal中添加
颤振图

1.2:将
flatterMap(TileLayerWidget(TileLayerOptions(urlTemplate:“”))添加到您想要的任何页面

1.3:在
urltemplate
添加您感兴趣的地图地址提供程序中。例如,OSM映射磁贴地址提供程序是

"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
或bing地址映射提供程序为“https://atlas.microsoft.com/map/tile/png?api-version=1&layer=basic&style=main&tileSize=256&view=Auto&zoom={z}&x={x}&y={y}&subscriptionKey={subscriptionKey},”

1.4:享受你的地图

2.1:使用映射框库

谢谢你,亲爱的莫森