Comments (9)
from flutter-vector-map-tiles.
Great to hear that you got it working!
@greensopinion do you want me to do a PR to this project to add another Tiles provider to the list?
Sure, that would be great.
from flutter-vector-map-tiles.
y=2 isn't valid for map zoom of 1. I haven't seen this issue before, you may have found a defect.
from flutter-vector-map-tiles.
Yes, I have been trying to load the Esri map but it is throwing an invalid coordinate error. But It is working fine with the example you have provided. i.e stadiamaps map.
Can you look into the issue if you have time, Let me know if I can help you with anything.
from flutter-vector-map-tiles.
The default TileProviders theme does not work with Esri VectorTileLayerOptions. In order to render Esri maps, you need to provide a custom theme such as:
Theme mapTheme(Map<String, dynamic> style, Set<ThemeLayerType>? mapTypes) {
return ThemeReader(logger: null).read(style).copyWith(types: mapTypes);
}
and inside the style parameter, you need to add the style.json file as a Map<String, dynamic>
This is the base arcgis / esri style json : https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/styles/root.json
You can either get this as a response from a get request or create a .json file containing your whole styles JSON.
from flutter-vector-map-tiles.
Thanks @husbycodereis, I was able to make it with your hints, here you can see the repo: https://github.com/hhkaos/flutter_arcgis_basemaps
@tashi146 I hope that helps.
@greensopinion do you want me to do a PR to this project to add another Tiles provider to the list?
from flutter-vector-map-tiles.
Great @greensopinion I will asap,
While I was refactoring the repo I noticed some issues displaying some map styles and labels. I guess I should fix at least the labels thing before doing the PR.
Any hint would be appreciated. Thanks!! 😄
from flutter-vector-map-tiles.
@hhkaos When I've seen issues like this before, it's usually because there are expressions in the theme that aren't supported by this library.
To troubleshoot the theme, consider adding a logger to the theme, e.g. ThemeReader(Logger.console()).read(theme)
You'll see warnings output to the console. If that's the case to fix it you'll either need to change your theme to only use supported expressions, or add support for the expressions you need to the renderer library (something like this commit)
from flutter-vector-map-tiles.
Awesome @greensopinion thanks! That's more than enough.
I will check the stiles and try to add support for the expression to the renderer library 😄
from flutter-vector-map-tiles.
Related Issues (20)
- 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 7
- 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
- Google maps support - Issue HOT 3
- Can't display pg_tileserv and postgis tiles HOT 1
- How to rotate and zoom the map like a native map experience
- Raster mode tile cancellation HOT 1
- new version available HOT 2
- providers.isNotEmpty error
- Blurred and Overly-Shadowed Sprites
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.