Map changes after onmapend