I'm able to show bubbles if the datasource contains them at the time the map is created, but I want to be able to add them dynamically.
To add markers dynamically I do map.markers.add(marker);
To add non-bubble shapes dynamically I define my shapes layer like this:
{
type: "shape",
dataSource: shapes,
style: { fill: { opacity: 1 }, stroke: { width: 1, color: "#88f" } }
},
with shapes defined like this:
var shapes = new kendo.data.DataSource({type: "geojson"});
According to this thread the only types of fields you can define in a custom datasource are "string", "number", "boolean" and "date". Unfortunately the bubble layer's location field is looking for a Lat Long, so that makes it so I can't use a kendo datasource object.
Is there a way to make this work?