Friday, June 15, 2007

Adding a simple world map overlay to WWJ

Here is a simple 'You are here' world map overlay layer for WWJ. It displays a crosshair over the current view location and behaves like the Compass layer.


Download Earth_Map.png in your SDK bin/images (where the compass bitmap is), then add WorldMapLayer.java to the worldwinddemo package or your application - remove the .txt extension first.

Once done, add this layer to WWJ in the same way as the compass layer.

No comments: