added condition to remove 'data' tag if getmap and updated endpoints config