improved rect/center calculations for future use
add map coordinates to JSON, not used right now