User Tools

Site Tools


map_suite_adornments

This is an old revision of the document!


Map Suite Adornments

Video Overview

Overview

Map Suite WebAPI Edition supports many popular adornments. In this learning sample we will go over some of the most common supported adornment and learn two different drawing styles. The advantage of using an Adornment is that the graphic stays in place and doesn't move as you pan your map.

Types of Adornments

There are seven types of adornment that are supported by Map Suite Core: Scale Bar Adornment, Scale Line Adornment, Scale Text Adornment,Logo Adornment, Graticule Adornment,Magnetic Declination Adornment, and Legend Adornment.

In this learning sample we will go over some of the most popular types of of adornments:

Scale Bar Adornment

Display scale bars on the map.It show the scale ratio and unit.

Border


Scale Line Adornment

Display scale line on the map.It show the scale ratio and unit.

Border

Scale Text Adornment

Display scale text on the map.It show the scale ratio and unit.

Border

Logo Adornment

The adornment should work for various kinds of logos and allow you to change the position using the AdornmentLayer's properties.

Border

Graticule Adornment

Graticule adornment can show meridians and parallels at various intervals based on the zoom level.

Border

Magnetic Declination Adornment

The adornment is used for showing the angle on the horizontal plane between magnetic north (the direction in which the north end of a compass needle, corresponding to the direction of the Earth's magnetic field lines) and true north (the direction along a meridian towards the geographic North Pole).

Border

Legend Adornment

Legend adornment can show a variety of custom information.

Border

A Look at the Code

There are two projects in the Visual Studio solution. One is for the Leaflet javascript mapping library and one is for OpenLayers. In each project the AdornmentsController contains the function that loads each adornment type. The functions show how to build a adornment layer.The RefreshAdornmentLayer function and RefreshSchoolPoiLayer function will show two different drawing styles.

map_suite_adornments.1452242901.txt.gz · Last modified: 2016/01/08 08:48 (external edit)