Giter Club home page Giter Club logo

Comments (9)

greensopinion avatar greensopinion commented on July 27, 2024 1

from flutter-vector-map-tiles.

greensopinion avatar greensopinion commented on July 27, 2024 1

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.

greensopinion avatar greensopinion commented on July 27, 2024

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.

tashi146 avatar tashi146 commented on July 27, 2024

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.

husbycodereis avatar husbycodereis commented on July 27, 2024

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.

hhkaos avatar hhkaos commented on July 27, 2024

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.

hhkaos avatar hhkaos commented on July 27, 2024

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.

greensopinion avatar greensopinion commented on July 27, 2024

@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.

hhkaos avatar hhkaos commented on July 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.