the beauty of mapping


Kode Iklan Disini

Thursday, July 30, 2009

The Antique Webgl Globe


I've e'er wanted to ain an antique globe. As it doesn't await similar I'm going to realize this dream anytime shortly I decided to brand my ain virtual antique globe. You tin brand 1 too!

Here's how to brand a virtual WebGL antique globe:

Step 1. WebGL Earth

The WebGL globe library already has a dandy Globe example using an onetime map of the world. Cut & glue the root code in addition to you're done.

Step 2. Add Other Maps

The David Rumsey Map Collection has geo-referenced thousands of maps. You tin utilisation these geo-referenced maps inwards your ain online maps past times precisely linking to the map tile-set URL. So all y'all accept to produce is respect roughly maps in addition to add together them to your WebGL globe globe alongside the .addTo(earth) function.

Here's the lawsuit - The Antique WebGL Globe

Unfortunately the WebGL globe API doesn't seem to accept a removeLayer(earth) function. The lawsuit is that y'all terminate upward precisely adding to a greater extent than & to a greater extent than map layers to the globe in addition to it gets a chip buggy really quickly.