Mercurial > hg > ChinaGisRestApi
changeset 109:9db303437b32
changable color for dots in map
author | fknauft |
---|---|
date | Tue, 01 Feb 2011 18:24:21 +0100 |
parents | 66db716158db |
children | 346cbc290aff |
files | RestDbGisApi.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/RestDbGisApi.py Tue Feb 01 18:05:58 2011 +0100 +++ b/RestDbGisApi.py Tue Feb 01 18:24:21 2011 +0100 @@ -346,7 +346,12 @@ def getKMLname(self,data=[],table=""): logging.debug("getKMLname") #session=context.REQUEST.SESSION - kml4Marker="<kml xmlns=\'http://www.opengis.net/kml/2.2\'><Document><Style id=\'marker_icon\'><IconStyle><scale>15</scale><Icon><href>http://chinagis.mpiwg-berlin.mpg.de/chinagis/images/dot_red.png</href></Icon></IconStyle></Style>\n" + kml4Marker="<kml xmlns=\'http://www.opengis.net/kml/2.2\'><Document>" + kml4Marker+="<Style id=\'marker_icon_red\'><IconStyle><scale>15</scale><Icon><href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_red.png</href></Icon></IconStyle></Style>\n" + kml4Marker+="<Style id=\'marker_icon_black\'><IconStyle><scale>15</scale><Icon><href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_black.png</href></Icon></IconStyle></Style>\n" + kml4Marker+="<Style id=\'marker_icon_blue\'><IconStyle><scale>15</scale><Icon><href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_blue.png</href></Icon></IconStyle></Style>\n" + kml4Marker+="<Style id=\'marker_icon_green\'><IconStyle><scale>15</scale><Icon><href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_green.png</href></Icon></IconStyle></Style>\n" + kml4Marker+="<Style id=\'marker_icon_violett\'><IconStyle><scale>15</scale><Icon><href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_violett.png</href></Icon></IconStyle></Style>\n" initializeStringForGoogleMaps="" #doLine=container.getVar('doLine') # Mapping a set of points from table-based SQL-query: