Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mapviewer/MediaMarker.js
diff options
context:
space:
mode:
Diffstat (limited to 'mapviewer/MediaMarker.js')
-rw-r--r--mapviewer/MediaMarker.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/mapviewer/MediaMarker.js b/mapviewer/MediaMarker.js
new file mode 100644
index 0000000..a47b00b
--- /dev/null
+++ b/mapviewer/MediaMarker.js
@@ -0,0 +1,21 @@
+function MediaMarker(){
+return{
+ initialize:function(pt, markerServer, markerId, tags, info, icon)
+ {this.markerServer=markerServer;
+ this.markerId=markerId;
+ this.pt=pt;
+ this.tags=tags;
+ this.info=info;
+ if(icon==null){icon="null";}
+ this.icon=icon;
+ this.iconDiv=null;
+ if((this.tags == undefined)||(this.tags==null))
+ {this.tags = "";}
+ },
+ getLatLng:function(){return this.pt;},
+ get_position:function(){return this.pt;},
+ get_info:function(){return this.info;},
+ getMarkerServer:function(){return this.markerServer;},
+ getMarkerId:function(){return this.markerId;}
+};
+} \ No newline at end of file