Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Map Bubble unable to change size

$
0
0

I'm running into another issue.  I'm not sure if it's related to doing the symbol thing or not, but in case it is, I'm going to put it in here.

I'm trying to do something when the bubble is clicked on based on the data item, but unfortunately when I try to get the data item it says it's undefined.

shapeClick: function (e) {
                alert(e.shape);
                alert(e.shape.dataItem);
                alert(e.shape.dataItem.Id);
}
alert(e.shape); says it's got an object, but e.shape.dataItem says undefined, and e.shape.dataItem.Id throws an error because it assumes that e.shape.dataItem is not undefined, but is in fact an object.

The parameter for shapeCreated also contains a shape property, but that one has a dataItem containing the data used to create the shape.  This dataItem in shapeCreated is the same as I get in symbol, but in symbol it doesn't go through the shape field.  Instead of e.shape.dataItem it's just e.dataItem.  I tried doing an alert with e.dataItem in shapeClick as well, but it said that was undefined too.

 

 


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>