Changeset 7139 for extensions/GMaps/js
- Timestamp:
- Oct 9, 2010, 9:55:26 PM (14 years ago)
- Location:
- extensions/GMaps/js
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/js/gmapsCategory.js
r7128 r7139 1 1 2 2 var currentMapLoad; 3 var markerImgProp = [ 4 null, 5 { w:32, h:32, x:15, y:31 }, // s01 6 { w:32, h:32, x:15, y:31 }, // s02 7 { w:32, h:32, x:10, y:31 }, // s03 8 { w:30, h:40, x:4, y:39 }, // s04 9 ]; 10 11 3 12 4 13 /** … … 39 48 { 40 49 kmlFile=null; 50 } 51 52 re=/^mS(\d\d)_.*/i; 53 iM=re.exec(properties.markerImg); 54 if(iM!=null) iM=new Number(iM[1]); 55 56 if(iM!=null) 57 { 58 map.markerImg = new google.maps.MarkerImage('plugins/GMaps/img/'+properties.markerImg, 59 new google.maps.Size(markerImgProp[iM].w, markerImgProp[iM].h), 60 new google.maps.Point(0,0), 61 new google.maps.Point(markerImgProp[iM].x, markerImgProp[iM].y)); 62 } 63 else 64 { 65 map.markerImg = null; 41 66 } 42 67 … … 149 174 ); 150 175 176 if(map.markerImg!=null) marker.setIcon(map.markerImg); 177 151 178 marker.info=markers[i]; 152 179 marker.info.displayed=0; -
extensions/GMaps/js/gmapsPicture.js
r7125 r7139 4 4 meta:false 5 5 }; 6 var markerImgProp = [ 7 null, 8 { w:32, h:32, x:15, y:31 }, // s01 9 { w:32, h:32, x:15, y:31 }, // s02 10 { w:32, h:32, x:10, y:31 }, // s03 11 { w:30, h:40, x:4, y:39 }, // s04 12 ]; 13 6 14 7 15 function applyMap(properties) … … 26 34 ); 27 35 28 if(properties.marker) 29 { 30 var marker = new google.maps.Marker( 31 { 32 position:latlng, 33 map: map, 34 title:properties.markerTitle 35 } 36 ); 37 } 36 37 var marker = new google.maps.Marker( 38 { 39 position:latlng, 40 map: map, 41 title:properties.markerTitle 42 } 43 ); 44 45 46 re=/^mS(\d\d)_.*/i; 47 iM=re.exec(properties.markerImg); 48 if(iM!=null) iM=new Number(iM[1]); 49 50 if(iM!=null) 51 { 52 var markerImg = new google.maps.MarkerImage('plugins/GMaps/img/'+properties.markerImg, 53 new google.maps.Size(markerImgProp[iM].w, markerImgProp[iM].h), 54 new google.maps.Point(0,0), 55 new google.maps.Point(markerImgProp[iM].x, markerImgProp[iM].y)); 56 marker.setIcon(markerImg); 57 } 58 59 60 61 38 62 39 63 if(properties.kmlFileUrl!='')
Note: See TracChangeset
for help on using the changeset viewer.