Comments (5)
from flutter-vector-map-tiles.
@greensopinion Hi, I mean to use vector tiles as a Widget, not only as Layer options, so FlutterMap
has both layers
and children
property and I can eg. use TileLayerWidget
in children or TileLayerOptions
in layers and both behave the same way (because widget only accepts options). My use case is to build custom map abstraction when I can place markers, widgets, and stack it properly, and using children
gives that flexibility. So I'd be very nice to have VectorTileLayerWidget
that I can use in the widget tree, not only in layers
. Can you support that?
from flutter-vector-map-tiles.
from flutter-vector-map-tiles.
Hi,
I am in the same situation as @stolus902 . All of my other layers are rendered as map children which is the new recommended way of handling layers in flutter_map, but map children are rendered beneath the old layers. Changing this should be fairly easy by adding a new file with the following contents and exposing it for public use.
class VectorTileLayerWidget extends StatelessWidget {
final VectorTileLayerOptions options;
const VectorTileLayerWidget({Key? key, required this.options})
: super(key: key);
@override
Widget build(BuildContext context) {
final mapState = MapState.maybeOf(context)!;
return VectorTileLayer(options, mapState, mapState.onMoved);
}
}
Using it would then be
FlutterMap(
...
children: [
const VectorTileLayerWidget(
options: VectorTileLayerOptions(....)),
],
));
from flutter-vector-map-tiles.
Added widget-based layer, in version 1.0.22 https://pub.dev/packages/vector_map_tiles
from flutter-vector-map-tiles.
Related Issues (20)
- Other vector tile formats than pbf
- StyleReader fails on public style HOT 1
- [StyleReader] add support for field "tiles" in sources. HOT 3
- WARN: theme layer type hillshade not implemented HOT 2
- Use local mbtiles file HOT 5
- I can't display my local Mbtiles files Carte.Mbtiles HOT 1
- Not accepting map styles from other sources HOT 1
- Differences in Styles for Mapbox.
- Update flutter_map dependency to 6.1.x HOT 4
- Web support HOT 1
- Question about working with tile server.
- [StyleReader] Converting JSON into a Style HOT 4
- DEpendency problems when upgrading to 6.0.2 HOT 2
- display with rotation is not the same between vector and raster modes in version 7.0.0 HOT 3
- is expressmaps supported? HOT 1
- Package available for web? HOT 2
- Raster Tiles Usage HOT 1
- would something like https://github.com/fleaflet/flutter_map_cancellable_tile_provider help in performance HOT 1
- very low performance HOT 1
- Override background color of VectorTileLayer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-vector-map-tiles.