Cartagen
Defined In: | cartagen.js |
Class: | Cartagen |
Extends: |
Property | Defined By | |
---|---|---|
feature_queue : (Wiki Page)
Queue of features to be drawn at the end of draw()...
Queue of features to be drawn at the end of draw()
|
Cartagen Cartagen | |
label_queue : Label[] (Wiki Page)
Queue of labels to draw...
Queue of labels to draw
|
Cartagen Cartagen | |
scripts : String[] (Wiki Page)
An array of scripts that will be loaded when Cartagen is initialized....
An array of scripts that will be loaded when Cartagen is initialized.
|
Cartagen Cartagen |
Method | Defined By | |
---|---|---|
browser_check( ) : void (Wiki Page)
Show alert if it's IE....
Show alert if it's IE.
Parameters:
|
Cartagen Cartagen | |
demo( ) : void (Wiki Page)
Rotates view slowly for cool demo purposes....
Rotates view slowly for cool demo purposes.
Parameters:
|
Cartagen Cartagen | |
draw( Event e ) : void (Wiki Page)
Runs every frame in the draw() method. An attempt to isolate cartagen code from general GLOP code.
Uses Geohash to draw ...
Runs every frame in the draw() method. An attempt to isolate cartagen code from general GLOP code.
Uses Geohash to draw each feature on the map.
Parameters:
|
Cartagen Cartagen | |
go_to( Number lat, Number lon, Number zoom_level ) : void (Wiki Page)
Repositions Cartagen to center on lat,lon with given zoom level...
Repositions Cartagen to center on lat,lon with given zoom level
Parameters:
|
Cartagen Cartagen | |
highlight( Object query ) : void (Wiki Page)
Searches all objects by tags, and sets highlight=true for all matches....
Searches all objects by tags, and sets highlight=true for all matches.
Parameters:
|
Cartagen Cartagen | |
import_kml( String url ) : void (Wiki Page)
Loads data from a local KML file and dumps it into the Geohash object....
Loads data from a local KML file and dumps it into the Geohash object.
Parameters:
|
Cartagen Cartagen | |
initialize( Object configs ) : void (Wiki Page)
Performs initialization tasks, mainly fetching map data. This should never be called directly,
rather it is intended to ...
Performs initialization tasks, mainly fetching map data. This should never be called directly,
rather it is intended to be called by setup
Parameters:
|
Cartagen Cartagen | |
load_next_script( ) : void (Wiki Page)
Loads each script in scripts array, sequentially.
Requires a load_next_script() call at the end of each
dependent script...
Loads each script in scripts array, sequentially.
Requires a load_next_script() call at the end of each
dependent script to trigger the next one.
Parameters:
|
Cartagen Cartagen | |
load_script( String script ) : void (Wiki Page)
Loads a script into tags, no cross-domain limits....
Loads a script into tags, no cross-domain limits.
Parameters:
|
Cartagen Cartagen | |
post_draw( ) : void (Wiki Page)
Runs every frame, after everything else has been done....
Runs every frame, after everything else has been done.
Parameters:
|
Cartagen Cartagen | |
queue_label( Label label, Number x, Number y ) : void (Wiki Page)
Adds the label to the list of labels to be drawn during post_draw...
Adds the label to the list of labels to be drawn during post_draw
Parameters:
|
Cartagen Cartagen | |
redirect_to_image( ) : void (Wiki Page)
Sends user to an image of the current canvas...
Sends user to an image of the current canvas
Parameters:
|
Cartagen Cartagen | |
setup( Object configs ) : void (Wiki Page)
Called from HTML page to boot up Cartagen. Registers initialize to run with the given configs when window is loaded....
Called from HTML page to boot up Cartagen. Registers initialize to run with the given configs when window is loaded.
Parameters:
|
Cartagen Cartagen | |
show_gss_editor( ) : void (Wiki Page)
Shows the live GSS editor. Generally only for cartgen.org....
Shows the live GSS editor. Generally only for cartgen.org.
Parameters:
|
Cartagen Cartagen |
Event | Defined By | |
---|---|---|
cartagen:init : ( ) (Wiki Page)
Listeners will be called with the following arguments:
|
Cartagen Cartagen | |
cartagen:predraw
Fires just after labels are drawn : ( ) (Wiki Page)
Listeners will be called with the following arguments:
|
Cartagen Cartagen | |
cartagen:predraw
Fires just before features are drawn : ( ) (Wiki Page)
Listeners will be called with the following arguments:
|
Cartagen Cartagen |