Cannot change shape radius

3 posts, 0 answers
  1. Mario
    Mario avatar
    2 posts
    Member since:
    Dec 2014

    Posted 02 Dec 2014 Link to this post

    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. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 04 Dec 2014 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mario
    Mario avatar
    2 posts
    Member since:
    Dec 2014

    Posted 04 Dec 2014 in reply to Ianko Link to this post

    Thanks lanko, I will try with the demo :)
Back to Top