Changeset 7176 for extensions/GMaps/js/gmapsPicture.js
- Timestamp:
- Oct 13, 2010, 5:25:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/js/gmapsPicture.js
r7141 r7176 1 /** 2 * ----------------------------------------------------------------------------- 3 * file: gmapsPicture.js 4 * file version: 1.0.0 5 * date: 2010-10-10 6 */ 7 1 8 2 9 var viewportInitialized = { … … 15 22 function applyMap(properties) 16 23 { 17 var latlng=new google.maps.LatLng(gmaps.coords.latitude, gmaps.coords.longitude); 18 19 var map = new google.maps.Map($("#"+properties.id).get(0), 20 { 21 mapTypeId: properties.mapType, 22 zoom: properties.zoomLevel, 23 center:latlng, 24 navigationControl: (properties.navigationControl==-1)?false:true, 25 scrollwheel: (properties.navigationControl==-1)?false:true, 26 scaleControl: (properties.scaleControl=='n')?false:true, 27 mapTypeControl:(properties.mapTypeControl==-1)?false:true, 28 mapTypeControlOptions: 29 { 30 style:properties.mapTypeControl 31 }, 32 markerTitle:'', 33 } 34 ); 35 36 37 var marker = new google.maps.Marker( 38 { 39 position:latlng, 40 map: map, 41 title:properties.markerTitle 42 } 43 ); 24 var latlng=new google.maps.LatLng(gmaps.coords.latitude, gmaps.coords.longitude), 25 map = new google.maps.Map($("#"+properties.id).get(0), 26 { 27 mapTypeId: properties.mapType, 28 zoom: properties.zoomLevel, 29 center:latlng, 30 navigationControl: (properties.navigationControl==-1)?false:true, 31 scrollwheel: (properties.navigationControl==-1)?false:true, 32 scaleControl: (properties.scaleControl=='n')?false:true, 33 mapTypeControl:(properties.mapTypeControl==-1)?false:true, 34 mapTypeControlOptions: 35 { 36 style:properties.mapTypeControl 37 }, 38 markerTitle:'', 39 } 40 ), 41 marker = new google.maps.Marker( 42 { 43 position:latlng, 44 map: map, 45 title:properties.markerTitle 46 } 47 ); 44 48 45 49
Note: See TracChangeset
for help on using the changeset viewer.