C1Map Layer Z-Order

Posted by: loic.lucien on 17 September 2021, 1:42 am EST

    • Post Options:
    • Link

    Posted 17 September 2021, 1:42 am EST

    Hello !

    I have a C1Map component with several vectorLayers, (1 for the map, 1 for some cities, 1 for some points of interest and 1 for display some VectorPolylines).

    My question is simple : how can I change the z order between the diffferents layers ?

    => I want to make the vectorPolyines layer behind the point of interest layer for example.

    Thanks.

  • Posted 17 September 2021, 7:33 am EST

    Hi, I found a way …

    1 - get the layer and store it in a temp var (for example ‘L’)

    2 - remove it from theMap layers collection

    3 - insert the 'L 'var layer in the collection at the position I want (if 0 the layer is behind all the others).

    Have a good day :slight_smile:

  • Posted 19 September 2021, 6:18 pm EST

    Hi,

    Good to hear that your issue has been resolved.

    Yes, You can change the z-order by changing the order of the layer in the collection.

    Regards

    Avnish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels