s
![]() |
|
Dreamweaver Extensions
|
Working with XML contentOpen the locations.xml file in Dreamweaver (File -> Open), to change the content of your map. The following example shows the basic structure of the content XML file: <?xml version="1.0" encoding="utf-8"?>
<map>
<location caption="Appartaments 1" lat="39.754957" long="-105.004666" photo="photo.jpg" link="read_more.html" target="_blank">
<!-- Here you can create any quantity of parameters of the description for your object-->
<param caption="Caption 1">Text line 1</param>
<param caption="Caption 2">Text line 2</param>
<param caption="Caption 3">Text line 3</param>
<param multiline="true">Multiline Text</param>
</location>
<location caption="Appartaments 2" lat="39.755957" long="-105.000666">
<!-- Here you can create any quantity of parameters of the description for your object-->
<param caption="Caption 1">Text line 1</param>
<param caption="Caption 2">Text line 2</param>
<param caption="Caption 3">Text line 3</param>
</location>
<location caption="Appartaments 2" address="701 first street, Sunnyvale, CA" photo="photo.jpg">
<!-- Here you can create any quantity of parameters of the description for your object-->
<param caption="Caption 1">Text line 1</param>
<param caption="Caption 2">Text line 2</param>
<param caption="Caption 3">Text line 3</param>
<param multiline="true">Multiline Text</param>
</location>
In this example, parent <map> tag contains 3 child tags <location>. In the first and second item addresses are specified through latitude and longitude and in the third item through address. All items have 3 captions (this captions can also be used to display in'Info Window' and 'Locations table'). You can add any number of caption parameters. Also you can add image as it is done in 1 and 3 items and hyperlink as in 1 item. Note: We advice to use attribute address only in a Debug mode! Using address attribute will slow the map work! <map>Description <location>Description Important note: The position of a marker on the map can be set in two ways, through attributes lat and long or attribute address. It is more preferable to use latitude and longitude coordinates. As we advice to use attribute address only in a Debug mode. Using address attribute will slow the map work. If more than 2,500 geocode requests in a 24 hour period are received from a single IP address, or geocode requests are submitted from a single IP address at too fast a rate, the Google Maps API geocoder will begin responding with a status code of 620. Attributes
<param>Description Attributes
|