# Zoom into map and centre

**URL:** <https://forum.kirupa.com/t/zoom-into-map-and-centre/154966>\
**Category:** flash\
**Created:** [July 13, 2005, 10:24pm UTC](https://forum.kirupa.com/t/zoom-into-map-and-centre/154966 "2005-07-13T22:24:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![minigallery](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@minigallery](https://forum.kirupa.com/u/minigallery)\
**Post date:** [July 13, 2005, 10:24pm UTC](https://forum.kirupa.com/t/zoom-into-map-and-centre/154966/1 "2005-07-13T22:24:38Z")

</div>

I’ve gone on a bit of a steep ActionScript learning curve this week and can do everything I need so far except one thing.

I have a slider which increases and decreases the scale of the map area, however, I cannot work out how to make the area being zoomed into stay in the centre of the map.

I have attached an example file to highlight the problem. If the red dots are lined up and the slider moved I want the red dot on the map area to stay in the same place and not move as the map grows.

I’ve lost quite a few hours trying to figure out the maths on solving this problem that I’m sure is really easy to fix.

Any help here appreciated 🙂
