Flash charts Flex charts WPF & Silverlight charts Flash maps
amMap Your interactive map tool
Home Home
Examples Examples
Download Download
Buy Buy
FAQ FAQ
Documentation Documentation
Support forum Support forum

2007-10-24 Passing data and settings directly from HTML

Since v 2.1.0 you can pass data and settings directly from HTML file. Open ammap.html file in the main folder of downloaded package and view the source of it. You will notice several commented lines there.

This line is can be used for passing data directly to HTML:

so.addVariable("map_data", escape('<map ......>......</map>'));

instead of <map ......>......</map> you have to place xml formatted map data in one line.

The same is with settings:

so.addVariable("map_settings", escape('<settings>....</settings>');

There is one more variable - "additional_map_settings". You can use it for appending some map settings. This is useful, if you have several maps with similar settings, and you have one file for all of them, but let's say you want to make some small differences. You can use this variable for that:

so.addVariable("additional_map_settings", escape('<settings>...</settings>');

In v 2.1.0 you can also have multiple settings files. To use several settings files, separate them with commas:

so.addVariable("settings_file", escape("ammap/ammap_settings.xml,ammap/ammap_settings2.xml"));

Download ammap


<< Previous | All news | Next >>
© amMap | About us | Contact and feedback: info@ammap.com Subscribe to amMap news feed by e-mail or RSS reader * a very good one