This is a migrated thread and some comments may be shown as answers.

Cannot change shape radius

2 Answers 68 Views
Map
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 1
Mario asked on 02 Dec 2014, 08:13 PM
Hi I have a radMap similar to this sample: http://demos.telerik.com/aspnet-ajax/map/examples/functionality/shapes-layer/defaultcs.aspx

I cannot change the circle radius, with e.shape.geometry.radius, the circles does not change its size.

There is no javascript errors, this is the function:

        function shapeCreated(e) {            
            if (isBubbleLayer(e.shape)) {
                e.shape.options.set("stroke.color", "#999999");
                e.shape.options.set("fill.color", "#666666");
                var currentZoom = e.sender.zoom();                
                var mag = e.shape.dataItem.properties.mag;
                e.shape.geometry.radius = 100;                
            }            
        }


Any idea is welcome!

Thanks in advance


2 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 04 Dec 2014, 02:50 PM
Hello Mario,

This approach to change the shape's radius is not supported due to the release of the bubble layer type, where you can change the radius depending on a certain value. You can replace the desired shapes with bubbles as shown in this demo.

Regards,
Ianko
Telerik
0
Mario
Top achievements
Rank 1
answered on 04 Dec 2014, 03:21 PM
Thanks lanko, I will try with the demo :)
Tags
Map
Asked by
Mario
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Mario
Top achievements
Rank 1
Share this question
or