Calibre2010
Calibre2010

Reputation: 3849

How do I change the map size on bing maps in jquery

I'm looking at the Api and cant figure what option to make my map size smaller? Anyone?

Upvotes: 1

Views: 1879

Answers (2)

John Culviner
John Culviner

Reputation: 22954

This worked well for me to create a small map:

<div id="map" style="height: 300px; width: 300px; position: relative;"></div>

The key part being position: relative

Upvotes: 4

Ashley Strout
Ashley Strout

Reputation: 6258

It should be like so:

$("#mapID").width("400px").height("300px");

You would, of course, change the ID and sizes to the correct ones.

Edit: Yup. Works. Worth mentioning, the default ID for the embedded Bing map is just "map".

Upvotes: 1

Related Questions