MallMapper : A Mall mapping tool based on OpenLayers

This page will show you how transform an ordinary textarea into a mapping tool, It will also show you how the use this mapping tool

  1. Developer Examples
  2. End user Guide

Simple Example

This is a simple example that attaches MallMapper to an emtpy textarea.
        $(document).ready(function(){
            new MallMapper({
                entitysetRootURL : rootURL + "/data/entitysets/",
                tilesetRootURL : rootURL + "/data/tilesets/",
                domInputId : 'textarea_1',
                entitySet : 'default',
                tileSet : 'mall_1',
                mode : 'navigation',
                styleMapGenerator : MallMapper.DefaultStyleGenerator,
                onReady : function(){;}
           }).start();
        }); 
        

Dynamic Example

Click "Transform To Map" button to attach MallMapper to this element. Note that MallMapper parses the text in the textarea and restores its state.



End User Guide

There are three modes allowed by the mapper
  1. Navigation

  2. Entity

  3. Path

Navigation

In this mode you are limited to panning the map

Entity

In this mode you can

  1. Add a new entity : By clicking any empty place on the map.
  2. Edit an entity : By clicking that entity.
  3. Moving an entity : By Dragging and dropping.
  4. Deleting an entity: By Hold the "Shift" key and clicking that entity.
  5. Establish a connection between a point on the path with an entity:
    - First select a point on the path by clicking it
    - Then Hold "Ctrl" and click an entity, this will attach that entity to that point on the path.

Path

In this mode you can

  1. Add a node to the path : By clicking any empty place on the map.
  2. Introduce a middle node: By dragging the small green points on the line.
  3. Moving a node : By Dragging and dropping.
  4. Deleting an node: By Hold the "Shift" key and clicking that node.
  5. Connecting to ends of the path : By holding "Ctrl" key and clicking on the node to connect to