HOW TO DRAW ICONS OR IMAGES ON A MAPSERVER GENERATED
MAP
|
||
The Database | ||
The positions and the images paths that have
to be shown on the map are stored into a table of a database in MySql. CREATE TABLE weather ( id bigint(20) NOT NULL auto_increment, imagepath varchar(255) default NULL, x double(16,4) default NULL, y double(16,4) default NULL, PRIMARY KEY (id) ) and than I have inserted into the table the positions of the weather images and the path of every icon: INSERT INTO `weather` VALUES (1, '/data/weather/icons/sunny.gif', 478107.0000,
5250301.0000); It is not necessary for the images to be stored into a directory visible from the web, because are taken directly by the script and then merged with the map. |
||
|
||