Skip to content
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

The layer '8PV9AZ2VbO_0' uses more data-driven properties than some devices may support. Though it will render correctly on this device, it may have rendering errors on other devices. To ensure compatibility with all devices, use 2 fewer data-driven properties in this layer. #380

Open
gizTM opened this issue Feb 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@gizTM
Copy link

gizTM commented Feb 14, 2024

I am trying to add symbols to the map using the lib. And this happened, please help.

What I did was:

  • create list of marker data by using current viewport from getVisibleRegion() and generate random latlng in bound
  • and create a class LocationPOI that has properties: name, type(enum), latlng
  • clear current symbols using controller?.removeSymbols(controller?.symbols.toList() ?? [])
  • and use addSymbols() to add list of poi to map

And this still happened, what could have gone wrong.

PS: testing on android pixel physical device is working with warning but with emulator it warns and the markers that are fetched from server is gone black color.

Screenshot 2567-02-13 at 18 25 51 Screenshot 2567-02-14 at 11 44 17
@m0nac0
Copy link
Collaborator

m0nac0 commented Mar 3, 2024

I haven't seen this warning before, but is it possible that your map style is quite complicated? Specifically uses many data expressions (see https://maplibre.org/maplibre-style-spec/expressions/#data-expressions for a definition of what are data expressions)?

@gizTM
Copy link
Author

gizTM commented Mar 4, 2024

First of all, thank you for replying to my issue. I very much appreciate it.

As for the map style, my team member who handled the vector map data said he didn't do much with the original 'omt-bright' style. So, I don't think the style file got much more complicated from the original file.

FYI: in flutter code, I use function controller.addSymbols() for marker and another controller.addSymbols() for the same dataset for rendering marker title text and await controller.setSymbolIconAllowOverlap(true); await controller.setSymbolIconIgnorePlacement(true); await controller.setSymbolTextAllowOverlap(false); await controller.setSymbolTextIgnorePlacement(false);
AND interestingly this only appear on android emulator, I'm not sure with other low-resource android devices but our testing physical device have no problem, both ios and android.

@josxha josxha added the bug Something isn't working label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants