adding spatial map to edit form