-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Labels, places and street names not showing and getting "Cancelled" error #71
Comments
Hello @riccardodebellini, your issue contains multiple topics.
PMTiles in general a slightly longer loading time than serving tiles with a tile server. For general performance issues with vector_map_tiles, see greensopinion/flutter-vector-map-tiles#120.
This is releated to the warning that gets printed to the console. Some style expressions that are used in newer versions on protomaps are not suported by vector_map_tiles. The complete logged warning is: flutter: WARN: Unsupported expression syntax: [case, [all, [any, [has, name], [has, pgf:name]], [!, [any, [has, name2], [has, pgf:name2]]], [!, [any, [has, name3], [has, pgf:name3]]]], [case, [has, script], [case, [any, [is-supported-script, [get, name]], [has, pgf:name]], [format, [coalesce, [get, name:en], [get, name:en]], {},
, {}, [case, [all, [!, [has, name:en]], [has, name:en], [!, [has, script]]], , [coalesce, [get, pgf:name], [get, name]]], {text-font: [case, [==, [get, script], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]}], [get, name:en]], [format, [coalesce, [get, name:en], [get, pgf:name], [get, name]], {}]], [all, [any, [has, name], [has, pgf:name]], [any, [has, name2], [has, pgf:name2]], [!, [any, [has, name3], [has, pgf:name3]]]], [case, [all, [has, script], [has, script2]], [format, [get, name:en], {},
, {}, [coalesce, [get, pgf:name], [get, name]], {text-font: [case, [==, [get, script], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]},
, {}, [coalesce, [get, pgf:name2], [get, name2]], {text-font: [case, [==, [get, script2], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]}], [case, [has, script2], [format, [coalesce, [get, name:en], [get, pgf:name], [get, name]], {},
, {}, [coalesce, [get, pgf:name2], [get, name2]], {text-font: [case, [==, [get, script2], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]}], [format, [coalesce, [get, name:en], [get, pgf:name2], [get, name2]], {},
, {}, [coalesce, [get, pgf:name], [get, name]], {text-font: [case, [==, [get, script], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]}]]], [case, [all, [has, script], [has, script2], [has, script3]], [format, [get, name:en], {},
, {}, [coalesce, [get, pgf:name], [get, name]], {text-font: [case, [==, [get, script], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]},
, {}, [coalesce, [get, pgf:name2], [get, name2]], {text-font: [case, [==, [get, script2], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]},
, {}, [coalesce, [get, pgf:name3], [get, name3]], {text-font: [case, [==, [get, script3], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]}], [case, [!, [has, script]], [format, [coalesce, [get, name:en], [get, pgf:name], [get, name]], {},
, {}, [coalesce, [get, pgf:name2], [get, name2]], {text-font: [case, [==, [get, script2], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]},
, {}, [coalesce, [get, pgf:name3], [get, name3]], {text-font: [case, [==, [get, script3], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]}], [!, [has, script2]], [format, [coalesce, [get, name:en], [get, pgf:name2], [get, name2]], {},
, {}, [coalesce, [get, pgf:name], [get, name]], {text-font: [case, [==, [get, script], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]},
, {}, [coalesce, [get, pgf:name3], [get, name3]], {text-font: [case, [==, [get, script3], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]}], [format, [coalesce, [get, name:en], [get, pgf:name3], [get, name3]], {},
, {}, [coalesce, [get, pgf:name], [get, name]], {text-font: [case, [==, [get, script], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]},
, {}, [coalesce, [get, pgf:name2], [get, name2]], {text-font: [case, [==, [get, script2], Devanagari], [literal, [Noto Sans Devanagari Regular v1]], [literal, [Noto Sans Regular]]]}]]]]
Eitherway this is missing feature in the upstream vector_map_tiles / vector_tile_renderer package and not in this package. It is possible to use pmtiles archives that use other map style schemes.
Last, the logged tile cancellations in the console are tracked in this issue: greensopinion/flutter-vector-map-tiles#205 |
Package
vector_map_tiles_pmtiles
Bug Description
The map is very laggy and slow on zoom/pan/movement in general, and doesn't display any street name / building labels (schools, transportation..).
Steps to Reproduce
1.Run the code
2. Zoom/move around
Expected Results
The map should
Video
Actual Results
The map
[1]
[2]
Video
Code Sample
Platforms
windows
The text was updated successfully, but these errors were encountered: