Replies: 1 comment 2 replies
-
Image loading is not synchronous. When you supply the image to Your sandbox shows the icon following the path nicely. You should check if the icon coordinate has the correct z value in your own app. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1. Icon layer is not following the path
see the position of the icon at different longitude and longitude along with the
![Screenshot (504)](https://user-images.githubusercontent.com/54087826/102621906-662b2180-4194-11eb-9c35-fd8e5d5fa548.png)
![Screenshot (506)](https://user-images.githubusercontent.com/54087826/102621926-6aefd580-4194-11eb-808b-1ae86bb12800.png)
![Screenshot (507)](https://user-images.githubusercontent.com/54087826/102621947-7216e380-4194-11eb-96f2-d43344e81c13.png)
![Screenshot (508)](https://user-images.githubusercontent.com/54087826/102621965-793df180-4194-11eb-9739-9937858f89fb.png)
PathLayer
You can notice, it is taking some offset at different points
I passed this property to IconLayer
2. IconLayer is not displaying properly
https://codesandbox.io/s/misty-grass-lbfgn?file=/src/App.js
I have used the same SVG image in the above-mentioned repository, whose image is shown above. That is a long codebase and points are coming from the remote server, so I am not able to share it with you. But, I created the same situation that can describe the problem.
When you run the above repository after cloning. you can notice, the icon is not displaying the same as it is shown in the above image. But, here also i have used the same image and same
IconLayer
property.Beta Was this translation helpful? Give feedback.
All reactions