开发者 | Malcolm-OPH |
---|---|
更新时间 | 2023年8月10日 16:03 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 5.7 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Add the shortcode (see below) to either a new or existing page on your site.
Some typical shortcodes, where the coordinates are specified, as follows: [bingmaps-map x=51.503146 y=-0.002979] [bingmaps-map posn=51.477841,-0.001548 zoom=14 w=800 h=500 type=ordnanceSurvey] (GB locale only)
Shortcode Attributes can specify that a URL Parameter is to be used for the value, by enclosing the ID of the Parameter in braces. A typical shortcode where coordinates are passed in the URL is as follows: [bingmaps-map posn={myposn} zoom={myzoom} w={mywidth} h={myheight} type={mytype}] The shortcode attributes above specify the ID of the URL parameter that will be used for the map coordinate etc. A typical URL for this shortcode would therefore be as follows: [YourPageURL]?myposn=51.477841,-0.001548&myzoom=14&mytype=ordnanceSurvey
The Shortcode Attributes 'pin1', 'pin2' etc. specify the position of pushpins. Alternatively the use 'pin={mypin}' to specify that the URL Parameters mypin1, mypin2 etc. are to be used for pushpin positions.
All map types supported by the Microsoft Bing Maps AJAX Control can be displayed. The map types available depends on the locale selected in the BingMaps settings. The Microsoft Bing Maps help page (http://msdn.microsoft.com/en-us/library/gg427625.aspx) lists all available map types.