Thanks for your reply T.
Unfortunately, in my case, in order to use "Extent" or "Map Center Point", I need to get the location of the shapes dynamically.
I need to get the location of the shapes while they are being created. So I can keep them in the json, and by selecting my countries somewhere else on the page (like some checkboxes), it can zoom in to the countries' shapes.
I tried this in Shape Create Event Handler, and assigned that to the center of the map, but it didn't work. It zoomed in to somewhere else.
var bbox = e.shape.bbox();
var center = bbox.center();
The only thing that worked for me to get the location, was Map, itself, Click Event:
click: function(e) { var location = e.location }
But it's not what I need.
Was wondering if you could help me.
Thanks