- OpenLayers is available under a BSD-style License. A copy of its license
should be available at http://svn.openlayers.org/trunk/openlayers/license.txt
+- marker-normal.png, marker-selected.png and marker-temp.png are part of
+ Openlayers.
+
- Jquery is available under both MIT and GPL licences. More informations can be
found at http://docs.jquery.com/Licensing
# openlayers images
mkdir $DESTDIR/openlayers/img
for file in east-mini.png \
- marker-gold.png \
north-mini.png \
blank.gif \
west-mini.png \
zoom-plus-mini.png \
- marker-blue.png \
- marker-green.png \
south-mini.png \
zoom-minus-mini.png \
zoom-world-mini.png; do
var Admin = {
Settings: {
- MARKER_ICON: "openlayers/img/marker-blue.png",
- MARKER_ICON_HEIGHT: 25,
- MARKER_SELECT_ICON: "openlayers/img/marker-green.png",
- MARKER_SELECT_ICON_HEIGHT: 25,
- MARKER_TEMPORARY_ICON: "openlayers/img/marker-gold.png",
- MARKER_TEMPORARY_ICON_HEIGHT: 25
+ MARKER_ICON: "media/marker-normal.png",
+ MARKER_SELECT_ICON: "media/marker-selected.png",
+ MARKER_TEMPORARY_ICON: "media/marker-temp.png",
+ MARKER_HEIGHT: 25
},
map: null,
var styleMap = new OpenLayers.StyleMap (
{"default": {
externalGraphic: this.Settings.MARKER_ICON,
- graphicHeight: this.Settings.MARKER_ICON_HEIGHT
- || 32
+ graphicHeight: this.Settings.MARKER_HEIGHT || 32
},
"temporary": {
externalGraphic: this.Settings.MARKER_TEMPORARY_ICON,
- graphicHeight: this.Settings.MARKER_TEMPORARY_ICON_HEIGHT
- || 32
+ graphicHeight: this.Settings.MARKER_HEIGHT || 32
},
"select": {
externalGraphic: this.Settings.MARKER_SELECT_ICON,
- graphicHeight: this.Settings.MARKER_SELECT_ICON_HEIGHT
- || 32
+ graphicHeight: this.Settings.MARKER_HEIGHT || 32
}});
var layer = new OpenLayers.Layer.GML("KML", "items.php",
var SYP = {
Settings: {
- MARKER_ICON: "openlayers/img/marker-blue.png",
- MARKER_ICON_HEIGHT: 25,
- MARKER_SELECT_ICON: "openlayers/img/marker-green.png",
- MARKER_SELECT_ICON_HEIGHT: 25
+ MARKER_ICON: "media/marker-normal.png",
+ MARKER_SELECT_ICON: "media/marker-selected.png",
+ MARKER_HEIGHT: 25
},
map: null,
}, {
context: {
height: function(feature) {
- var defaultHeight = SYP.Settings.MARKER_ICON_HEIGHT || 32;
+ var defaultHeight = SYP.Settings.MARKER_HEIGHT || 32;
var increase = 4 * (feature.attributes.count - 1);
return Math.min(defaultHeight + increase, 50);
}
});
var selectStyle = new OpenLayers.Style({
externalGraphic: this.Settings.MARKER_SELECT_ICON,
- graphicHeight: this.Settings.MARKER_SELECT_ICON_HEIGHT || 32
+ graphicHeight: this.Settings.MARKER_HEIGHT || 32
});
var styleMap = new OpenLayers.StyleMap (
{"default": defaultStyle,