The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "User:Tut Bastet"

From A Tale in the Desert
Jump to navigationJump to search
 
(54 intermediate revisions by the same user not shown)
Line 1: Line 1:
<googlemap height ="500" lat="0" lon="0" zoom="1" controls="medium" type="game">
+
== '''Garlic Spot Search''' ==
 +
 
 +
<googlemap lat="0" lon="0" zoom="2" width="500" height="800" icons="http://www.belunktum.dk/markers/markertrans{label}.png" iconsize="16x16" iconanchor="8x8" iconlabels="0,1,2,3,4,5,6,7,8,9" controls="medium" type="gameb" scrollwheel="zoom" shadow="http://www.divineu.com/markers/blank.png">
 +
 
 +
(1) 2983,4443,1 Garlic at 2983,4443
 +
(1) 3375,4431,1 Garlic at 3375,4431
 +
(1) 3733,3757,1 Garlic at 3733,3757
 +
(1) 4206,3664,1 Garlic at 4206,3664
 +
(1) 4170,2818,1 Garlic at 4170,2818
 +
(1) 3822,2356,1 Garlic at 3822,2356
 +
(1) 4216,4209,1 Garlic at 4216,4209
 +
(1) 3813,4361,1 Garlic at 3813,4361
 +
 
 
</googlemap>
 
</googlemap>
  
<script>
 
// This file adds a new circle overlay to GMaps2
 
// it is really a many-pointed polygon, but look smooth enough to be a circle.
 
var CircleOverlay = function(latLng, radius, strokeColor, strokeWidth, strokeOpacity, fillColor, fillOpacity) {
 
this.latLng = latLng;
 
this.radius = radius;
 
this.strokeColor = strokeColor;
 
this.strokeWidth = strokeWidth;
 
this.strokeOpacity = strokeOpacity;
 
this.fillColor = fillColor;
 
this.fillOpacity = fillOpacity;
 
}
 
  
// Implements GOverlay interface
+
----
CircleOverlay.prototype = GOverlay;
+
More Garlic
  
CircleOverlay.prototype.initialize = function(map) {
+
<googlemap lat="0" lon="0" zoom="2" width="500" height="800" controls="medium" type="gameb" scrollwheel="zoom" shadow="http://www.divineu.com/markers/blank.png">
this.map = map;
 
}
 
  
CircleOverlay.prototype.clear = function() {
+
-2385,2606,-2385,2606
if(this.polygon != null && this.map != null) {
+
-2316,2667,-2316,2667
this.map.removeOverlay(this.polygon);
+
-1755,2622,-1755,2622
}
+
-476,1611,-476,1611
}
+
-373,16,-373,16
 +
-344,172,-344,172
 +
447,2155,447,2155
 +
851,2164,851,2164
 +
2051,6485,2051,6485
 +
3383,3549,3383,3549
  
// Calculate all the points and draw them
 
CircleOverlay.prototype.redraw = function(force) {
 
var d2r = Math.PI / 180;
 
circleLatLngs = new Array();
 
var circleLat = this.radius * 0.014483;  // Convert statute miles into degrees latitude
 
var circleLng = circleLat / Math.cos(this.latLng.lat() * d2r);
 
var numPoints = 40;
 
 
// 2PI = 360 degrees, +1 so that the end points meet
 
for (var i = 0; i < numPoints + 1; i++) {
 
var theta = Math.PI * (i / (numPoints / 2));
 
var vertexLat = this.latLng.lat() + (circleLat * Math.sin(theta));
 
var vertexLng = this.latLng.lng() + (circleLng * Math.cos(theta));
 
var vertextLatLng = new GLatLng(vertexLat, vertexLng);
 
circleLatLngs.push(vertextLatLng);
 
}
 
 
this.clear();
 
this.polygon = new GPolygon(circleLatLngs, this.strokeColor, this.strokeWidth, this.strokeOpacity, this.fillColor, this.fillOpacity);
 
this.map.addOverlay(this.polygon);
 
}
 
  
CircleOverlay.prototype.remove = function() {
 
this.clear();
 
}
 
  
CircleOverlay.prototype.containsLatLng = function(latLng) {
 
// Polygon Point in poly
 
if(this.polygon.containsLatLng) {
 
return this.polygon.containsLatLng(latLng);
 
}
 
}
 
  
CircleOverlay.prototype.setRadius = function(radius) {
 
this.radius = radius;
 
}
 
  
CircleOverlay.prototype.setLatLng = function(latLng) {
 
this.latLng = latLng;
 
}
 
  
circle = new CircleOverlay(map.getCenter(), circleRadius, "#336699", 1, 1, '#336699', 0.25);
+
 
map.addOverlay(circle);
+
</googlemap>
</script>
 

Latest revision as of 19:29, 21 May 2010

Garlic Spot Search



More Garlic