4 out of 4 rated this helpful - Rate this topic

Setting Map Control Parameters

Bing Services

This topic describes map control parameters.

Parameters

The following table contains available parameters for the map control reference.

Parameter Values Description

v

7.0

Specifies a major API version. The default value is the latest version, which is 7.0.

s

0, 1

Specifies whether to use SSL. Set this value equal to 1 to use SSL. The default value is 0.

mkt

See the Returning a Localized Map topic for a list of values.

Specifies the market to use, which defines the language Bing Maps AJAX Control 7.0 uses. The default value is "en-US" (English).

onscriptload

A string specifying a function name.

Specifies the name of a JavaScript function to call when the map control script is loaded. The name must contain only alphanumeric characters.

The CSS and tiles will not be loaded when this function is called.

This parameter is useful for loading the map control asynchronously, which can improve your site performance by allowing the map control script to load in parallel with other content.

Setting Parameters

To add a parameter to the map control src URL, add a "?", the parameter, and set it "=" to one of the allowable values. Use "&" to separate parameters.

The following example sets the map control version to 7.0 and the market to Italian.

<script charset="UTF-8" type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&mkt=it-IT">
</script>

See Also

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.