Changeset 7702 for trunk/src/inc


Ignore:
Timestamp:
Apr 8, 2010, 12:18:53 PM (15 years ago)
Author:
Pieter Naber
Message:

Moved pointer images to config file as example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/inc/KMLFile.class.php

    r7700 r7702  
    55 * Purpose: Creating of editing KML files
    66 */
    7 
    8 define('PLACEMARK_GREEN', 'http://www.google.com/intl/en_us/mapfiles/ms/micons/green-dot.png');
    9 define('PLACEMARK_ORANGE', 'http://www.google.com/intl/en_us/mapfiles/ms/micons/orange-dot.png');
    10 define('PLACEMARK_RED', 'http://www.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png');
    117
    128class KMLFile {
     
    8278                }
    8379
    84                 $toString = str_replace('%PLACEMARK_GREEN%', PLACEMARK_GREEN, $toString);
    85                 $toString = str_replace('%PLACEMARK_ORANGE%', PLACEMARK_ORANGE, $toString);
    86                 $toString = str_replace('%PLACEMARK_RED%', PLACEMARK_RED, $toString);
     80                $toString = str_replace('%PLACEMARK_GREEN%', $config['placemark_green'], $toString);
     81                $toString = str_replace('%PLACEMARK_ORANGE%', $config['placemark_orange'], $toString);
     82                $toString = str_replace('%PLACEMARK_RED%', $config['placemark_red'], $toString);
    8783                $toString = str_replace('%CONTENT%', $placemarkString, $toString);
    8884
Note: See TracChangeset for help on using the changeset viewer.