World Map Demo

Click here to download the demo. Watch a live demo of the World Map Demo on http://www.esn.me/map/

Testing the demo

  • Make sure you have the latest version of Planet installed
  • Unzip the zip file
  • Open the worldmapdemo project
  • Press the “Run Planet Project” button
../../_images/worldmap_1.png

Structure of the demo project

When you open up the project you will have a project structure that looks like this:

../../_images/worldmap_2.png

There are two Impact components, and three Surface components.

The Impact components

The Impact components composes the backend part of the project. Here is a brief description of each Impact component in the project.

shout

Provides Services for posting, and rating, shouts (messages), as well as the Model for shouts, and handles the sending of Push real-time events for shouts.

visitortracker

Provides Services for keeping track on what page different users on the site is viewing.

The Surface components

map

The map Surface component is the “main” component of the project. The “main” component is set up to redirect the user to /map/ when accessing the / path.

base

The base component contains the base Surface template that defines the base design and structure of the website. This base template is extended by the map template. Base component also contains jQuery JavaScript library, and a library of functions that can convert longitude/latitude positions to pixels on our map image.

main

The default component. Redirects requests to the map controller.