Changeset 239 for trunk/map/index.php
- Timestamp:
- Aug 2, 2009, 10:28:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/map/index.php
r216 r239 18 18 19 19 var map; 20 var tinyIcon; 20 21 21 22 function initialize() … … 37 38 tinyIcon.shadowSize = new GSize(10, 10); 38 39 tinyIcon.iconAnchor = new GPoint(5, 5); 39 tinyIcon.infoWindowAnchor = new GPoint(5, 1); 40 41 // Set up our GMarkerOptions object literal 42 markerOptions = { icon:tinyIcon };'; 40 tinyIcon.infoWindowAnchor = new GPoint(5, 1);'; 43 41 44 42 $Output .= ' … … 102 100 while($Device = $DbResult->fetch_assoc()) 103 101 { 104 $Output .= 'new GMarker(new GLatLng('.$Device['PositionLatitude'].', '.$Device['PositionLongitude'].'), markerOptions), ';102 $Output .= 'new GMarker(new GLatLng('.$Device['PositionLatitude'].', '.$Device['PositionLongitude'].'), {title: "'.$Device['Name'].'", icon:tinyIcon }), '; 105 103 } 106 104 $Output .= '];
Note:
See TracChangeset
for help on using the changeset viewer.