question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Understanding SymbolLayer

See original GitHub issue

I have a hard time trying to understand how the SymbolLayer works, especially the style prop, especially the properties iconSize and iconImage seen in the ShapeSourceIcon example. I understand that there is a lot of WIP in this library, especially regarding the doc, and if I have some time I would be glad to help, but in the meantime I need to sort out my transition from PointAnnotation to SymbolLayer, and I feel it quite hard to understand the way the whole machinery works without documentation…

Thanks for your help !

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

3reactions
justincrichcommented, Jul 25, 2019

I’m a bit confused too … would appreciate some explanation on how this new component works as compared to PinAnnotation

0reactions
alexis-regnaudcommented, Jan 13, 2021

Do we have any update on that one ? In the documentation It’s write that iconSize is a number and in the example (ShapeSourceIcon) there is that case :

 iconSize: [
      'match',
      ['get', 'icon'],
      'example',
      1.2,
      'airport-15',
      1.2,
      /!* default *!/ 1,
    ]

Following the actual docution, I have difficulties to understand how this one should work…

Read more comments on GitHub >

github_iconTop Results From Across the Web

About working with symbol layers—Help | Documentation
Symbol layers are the building blocks that make up a representation rule. They define how the geometry is displayed for each feature assigned...
Read more >
Display multiple icon images in a symbol layer | Maps SDK | iOS
Add point data and several images to a style and use the switchCase and get expressions to choose which image to display at...
Read more >
nitaliano/react-native-mapbox-gl - annotation vs SymbolLayer
I tried annotations and from what I understand: annotation are react components that are placed on top of the map view and moved...
Read more >
A Complete Guide to Sources and Layers in React and ...
Understanding how to add sources and layers to a map will open a lot of ... A symbol layer can also be used...
Read more >
What is the difference between Feature Symbology and ...
Symbol layer symbology : depending on the symbology, the same geometry is exported several times on top of each other, for each symbol...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found