# Aaarrgh! Have a Map Centering Question

**URL:** <https://forum.kirupa.com/t/aaarrgh-have-a-map-centering-question/66743>\
**Category:** Uncategorized\
**Created:** [October 8, 2004, 2:11pm UTC](https://forum.kirupa.com/t/aaarrgh-have-a-map-centering-question/66743 "2004-10-08T14:11:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgrhm](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dgrhm](https://forum.kirupa.com/u/dgrhm)\
**Post date:** [October 8, 2004, 2:11pm UTC](https://forum.kirupa.com/t/aaarrgh-have-a-map-centering-question/66743/1 "2004-10-08T14:11:54Z")

</div>

I posted a question regarding the ability to create a zoomable map. I’ve created a PDA style application, and there’s a window where the user can either click a “+” button to zoom in, or a “-” button to zoom out. When you click either button the map will increase or decrease in scale, but the map doesn’t remain centered.

for example: I’ve used a button and this script.  
_on (press) {_  
_map.\_xscale += 10;_  
_map.\_yscale += 10;_  
_}_

How could I add the ability to center the map?

Any help will be greatly appreciated. :p:
