[Mapbender-commits] r6603 - in trunk/mapbender/http: javascripts
plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jul 13 11:34:56 EDT 2010
Author: kmq
Date: 2010-07-13 15:34:56 +0000 (Tue, 13 Jul 2010)
New Revision: 6603
Modified:
trunk/mapbender/http/javascripts/geometry.js
trunk/mapbender/http/plugins/mb_loadkmlgeorss.js
Log:
make georss loading look nicer
Modified: trunk/mapbender/http/javascripts/geometry.js
===================================================================
--- trunk/mapbender/http/javascripts/geometry.js 2010-07-13 14:52:40 UTC (rev 6602)
+++ trunk/mapbender/http/javascripts/geometry.js 2010-07-13 15:34:56 UTC (rev 6603)
@@ -1958,8 +1958,8 @@
}
else {
var $img = $('<img src="'+url+'" />');
- var width = $img.attr('width')||24;
- var height = $img.attr('height')||24;
+ var width = $img.attr('width')||19;
+ var height = $img.attr('height')||34;
var img = canvas.image(url, newImgLeft, newImgTop, width, height);
node = img.node;
Modified: trunk/mapbender/http/plugins/mb_loadkmlgeorss.js
===================================================================
--- trunk/mapbender/http/plugins/mb_loadkmlgeorss.js 2010-07-13 14:52:40 UTC (rev 6602)
+++ trunk/mapbender/http/plugins/mb_loadkmlgeorss.js 2010-07-13 15:34:56 UTC (rev 6603)
@@ -140,19 +140,16 @@
icon = g.e.getElementValueByName("Mapbender:icon");
title = g.e.getElementValueByName("title");
name = g.e.getElementValueByName("name");
- if(typeof(name) == "string"){
- title = name != "false" ? name : title;
- if (icon == "false"){
- g.e.setElement("Mapbender:icon","../img/marker/red.png");
- }
- }else{
- //sane browsers go here
- title = name != false ? name : title;
- if (icon === false){
- g.e.setElement("Mapbender:icon","../img/marker/red.png");
- }
+
+ if(name != "false" && name !== false){
+ title = name;
+ }
+ if(icon == "false" || icon === false){
+ g.e.setElement("Mapbender:iconOffsetX", -10);
+ g.e.setElement("Mapbender:iconOffsetY", -34);
+ g.e.setElement("Mapbender:icon","../img/marker/red.png");
}
-
+
description = g.e.getElementValueByName("description");
$row = $("<tr><td>"+ title +"</td></tr>");
$row.css("cursor","pointer");
More information about the Mapbender_commits
mailing list