Topic: Initially clustered markers don't have custom image?
Hello Alex,
We're running into an issue with our code which we cannot figure out. We create markers which have a script attached, which on start, sets the marker's image using
GetComponent<SpriteRenderer>().sprite = Sprite.Create(texture, rect, vector2);
This normally works fine and all markers have a correct image.
When markers start out clustered, they do not have the correct image when declustering/zooming in.
For markers that do not start out clustered, clustering and declustering them works correctly and they still have their image afterwards.
So:
Case 1 Startup: Clustermarker(2) -> zooming in -> two individual markers without image
Case 2 Startup: two individual markers (with image) -> zooming out -> Clustermarker(2) -> zooming in -> two individual markers (with image)
This is the process of application start:
1. Get data
2. Create markers with data
3. Marker script's on Start is called and sets image
4. Group3DMarkers is called