tile.styleFor = function (feature) {
var type = feature.geometry.type;
var styleColor = feature.properties.style.color;
switch (type) {
case 'Point':
return {
color: styleColor,
radius: 3 // what's the unit?
};
}
};
g.arc(p.x, p.y, style.radius, 0, Math.PI * 2);
If you use spherical mercator projection (the same used by google and bing)
a pixel at the maximum zoom is a meter, so you simply must set radius
value as 50 / (2 * currentzoom).