Mapstraction resizeTo() method…

If you happen to be having issues with Mapstraction’s resizeTo() method, remember this: the arguments that it takes in must have a ‘px’ after them.  For example

map.resizeTo(‘100px’, ‘100px’);

I had forgotten to add the ‘px’ after the number, and it didn’t work.  As a result, I spent more of my afternoon than I would have liked trying to figure out why my map wouldn’t resize properly…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s