Template:Fragoria Map
From FragoriaWiki
(Difference between revisions)
												
			
		| Line 40: | Line 40: | ||
| 				map.setMapTypeId('moon'); | 				map.setMapTypeId('moon'); | ||
| - | // bounds of the desired area | + | 		// bounds of the desired area | 
| 		var allowedBounds = new google.maps.LatLngBounds( | 		var allowedBounds = new google.maps.LatLngBounds( | ||
| 			new google.maps.LatLng(-50, 80),   | 			new google.maps.LatLng(-50, 80),   | ||
| Line 90: | Line 90: | ||
| 		// repeat across y-axis (vertically) | 		// repeat across y-axis (vertically) | ||
| - | + | 		if (y < 0 || y >= tileRange) { | |
| - | + | 			return null; | |
| - | + | 		} | |
| 		// repeat across x-axis | 		// repeat across x-axis | ||
| - | + | 		if (x < 0 || x >= tileRange) { | |
| - | + | 			x = (x % tileRange + tileRange) % tileRange; | |
| - | + | 		} | |
| 		return { | 		return { | ||
Revision as of 21:33, 3 April 2015

 
				
				
				
				
				
	
			