codesite-noreply at google.com
2009-Aug-27 17:44 UTC
[Mapstraction] [mapstraction] r24 committed - mxn.core.js...
Revision: 24 Author: freyfogle Date: Thu Aug 27 10:43:39 2009 Log: mxn.core.js - removed creation of pinID in addMarker, I believe it''s only used by microsoft. mxn.micrsoft.core.js - added creation of pinID in addMarker mxn.google.core.js - changes to Marker -- previously it was not possible to specify no shadow. now if icon.shadowUrl exists but is empty no shadow is applied -- if a marker has transparent or imageMap defined, these are now passed to the underlying google icon http://code.google.com/p/mapstraction/source/detail?r=24 Modified: /trunk/source/mxn.core.js /trunk/source/mxn.google.core.js /trunk/source/mxn.microsoft.core.js ======================================--- /trunk/source/mxn.core.js Sun Aug 23 19:46:44 2009 +++ /trunk/source/mxn.core.js Thu Aug 27 10:43:39 2009 @@ -1350,7 +1350,6 @@ this.onmap = false; this.proprietary_marker = false; this.attributes = []; - this.pinID = "mspin-"+new Date().getTime()+''-''+(Math.floor(Math.random()*Math.pow(2,16))); this.invoker = new mxn.Invoker(this, ''Marker'', function(){return this.api;}); mxn.addEvents(this, [ ''openInfoBubble'', // Info bubble opened ======================================--- /trunk/source/mxn.google.core.js Sun Aug 16 17:18:10 2009 +++ /trunk/source/mxn.google.core.js Thu Aug 27 10:43:39 2009 @@ -406,12 +406,21 @@ } icon.iconAnchor = anchor; } - if(this.iconShadowUrl) { + if(typeof(this.iconShadowUrl) != ''undefined'') { icon.shadow = this.iconShadowUrl; if(this.iconShadowSize) { icon.shadowSize = new GSize(this.iconShadowSize[0], this.iconShadowSize[1]); } - } + } else { // turn off shadow + icon.shadow = ''''; + icon.shadowSize = ''''; + } + if(this.transparent) { + icon.transparent = this.transparent; + } + if(this.imageMap) { + icon.imageMap = this.imageMap; + } options.icon = icon; } if(this.draggable){ ======================================--- /trunk/source/mxn.microsoft.core.js Sat Jun 6 15:53:35 2009 +++ /trunk/source/mxn.microsoft.core.js Thu Aug 27 10:43:39 2009 @@ -127,8 +127,9 @@ addMarker: function(marker, old) { var map = this.maps[this.api]; + marker.pinID = "mspin-"+new Date().getTime()+''-''+(Math.floor(Math.random()*Math.pow(2,16))); var pin = marker.toProprietary(this.api); - map.AddShape(pin); + map.AddShape(pin); //give onclick event //give on double click event //give on close window