Permalink
Browse files

de-Googling

git-svn-id: https://modestmaps.googlecode.com/svn/trunk/as3@734 a23cadb0-8de1-11de-82e5-a1837a67dc72
  • Loading branch information...
tom
tom committed Dec 21, 2008
1 parent 33d4ab4 commit a892c4d99e68871802859f8e779569506e3f3577
View
@@ -0,0 +1,8 @@
#!/bin/sh
FLEX_HOME=/Applications/Adobe\ Flex\ Builder\ 3/sdks/3.2.0/;
PROJ_PATH=/Users/tom/Documents/Stamen/ModestMapsV1/modestmaps/trunk/as3;
cd "$FLEX_HOME";
pwd
bin/asdoc -doc-sources $PROJ_PATH/lib -output $PROJ_PATH/docs
@@ -16,7 +16,7 @@ package com.modestmaps.extras
* VERY EXPERIMENTAL, requires javascript, uses this technique:
* http://www.actionscript.org/resources/articles/745/1/JavaScript-and-VBScript-Injection-in-ActionScript-3/Page1.html
*
* TODO: update spans for Microsoft, fix slowness with Google, add Yahoo :)
* TODO: update spans for Microsoft, add Yahoo :)
*
* In general, lots of this needs reworking... at least, IMapProviders should be able to provide copyright strings
* without requiring javascript, and without needing to edit this file.
@@ -66,20 +66,6 @@ package com.modestmaps.extras
this.microsoft.copyright(undefined, minLat, minLon, maxLat, maxLon, zoom);
break;
case 'GOOGLE_ROAD':
this.google.copyright('', cenLat, cenLon, maxLat-minLat, maxLon-minLon, zoom);
break;
case 'GOOGLE_AERIAL':
this.google.copyright('&t=k', cenLat, cenLon, maxLat-minLat, maxLon-minLon, zoom);
break;
case 'GOOGLE_HYBRID':
this.google.copyright('&t=h', cenLat, cenLon, maxLat-minLat, maxLon-minLon, zoom);
break;
// TODO: GOOGLE_TERRAIN
case 'YAHOO_ROAD':
case 'YAHOO_AERIAL':
case 'YAHOO_HYBRID':
@@ -93,38 +79,6 @@ package com.modestmaps.extras
}
},
google: {
holders: undefined,
addCopyright:
function(holder)
{
if(!this.holders || !holder) {
return;
}
var newHolder = true;
for(var i = 0; i < this.holders.length; i += 1) {
if(holder == this.holders[i]) {
newHolder = false;
}
}
if(newHolder) {
this.holders.push(holder);
document.getElementById(modestMaps.swfId).copyrightCallback(this.holders.join(', '));
}
},
copyright:
function(t, cenLat, cenLon, spanLat, spanLon, zoom)
{
this.holders = ['&copy; Google'];
var s = document.createElement('script');
s.src='http://maps.google.com/maps?spn='+spanLat+','+spanLon+'&z='+zoom+'&vp='+cenLat+','+cenLon+'&ev=p'+t;
document.getElementsByTagName('head')[0].appendChild(s);
}
},
microsoft: {
@@ -202,8 +156,6 @@ package com.modestmaps.extras
}
};
GAddCopyright = function(g,a,r,b,a,g,e, holder) { modestMaps.google.addCopyright(holder); };
}
]]>
</script>;
@@ -26,7 +26,6 @@ package com.modestmaps.flex
import com.modestmaps.geo.*;
import com.modestmaps.mapproviders.*;
import com.modestmaps.mapproviders.microsoft.*;
import com.modestmaps.mapproviders.google.*;
import com.modestmaps.mapproviders.yahoo.*;
import flash.events.Event;
@@ -200,7 +199,7 @@ package com.modestmaps.flex
* <modest:Map provider="{new FancyCustomMapProvider()}" .../>
*/
[Inspectable(category="Map",
enumeration="BLUE_MARBLE,GOOGLE_AERIAL,GOOGLE_ROAD,GOOGLE_HYBRID,MICROSOFT_AERIAL,MICROSOFT_ROAD,MICROSOFT_HYBRID,YAHOO_ROAD,YAHOO_AERIAL,YAHOO_HYBRID,ZOOMIFY,OPEN_STREET_MAP,VANILLA",
enumeration="BLUE_MARBLE,MICROSOFT_AERIAL,MICROSOFT_ROAD,MICROSOFT_HYBRID,YAHOO_ROAD,YAHOO_AERIAL,YAHOO_HYBRID,OPEN_STREET_MAP",
defaultValue="BLUE_MARBLE")]
public function set provider(provider:*):void
{
@@ -224,15 +223,6 @@ package com.modestmaps.flex
case "MICROSOFT_ROAD":
_mapProvider = new MicrosoftRoadMapProvider();
break;
case "GOOGLE_AERIAL":
_mapProvider = new GoogleAerialMapProvider();
break;
case "GOOGLE_HYBRID":
_mapProvider = new GoogleHybridMapProvider();
break;
case "GOOGLE_ROAD":
_mapProvider = new GoogleRoadMapProvider();
break;
case "YAHOO_AERIAL":
_mapProvider = new YahooAerialMapProvider();
break;
@@ -338,4 +328,4 @@ package com.modestmaps.flex
}
}
}
}

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
@@ -13,7 +13,7 @@
/* ENUMS */
[Bindable] private var mapTileProviders:Array = ["GOOGLE_ROAD","GOOGLE_AERIAL","GOOGLE_HYBRID","MICROSOFT_AERIAL","MICROSOFT_ROAD","MICROSOFT_HYBRID","YAHOO_ROAD","YAHOO_AERIAL","YAHOO_HYBRID","ZOOMIFY","OPEN_STREET_MAP","BLUE_MARBLE",];
[Bindable] private var mapTileProviders:Array = ["MICROSOFT_AERIAL","MICROSOFT_ROAD","MICROSOFT_HYBRID","YAHOO_ROAD","YAHOO_AERIAL","YAHOO_HYBRID","ZOOMIFY","OPEN_STREET_MAP","BLUE_MARBLE",];
/* Local Reference */
private var mouseWheelTimer:Timer = new Timer(150,1);
Oops, something went wrong.

0 comments on commit a892c4d

Please sign in to comment.