ThinkGeo.MapSuite.Layers.Adornments

Please upgrade to version 12 (Search ThinkGeo.Core on NuGet) if possible. Version 12 works with both .NET Framework and .NET Core, has much less dependencies and many other benifits over 10.0. AdornmentLayer is included in the main package ThinkGeo.Core in Version 12. ThinkGeo.MapSuite.Layers.Adornments is a layer extension to the Map Suite product line, see below for compatibility. It is used to place adornments on the map. Here is the link to our samples page that includes a sample for adornments: http://samples.thinkgeo.com/MvcEdition/HowDoISamples This package integrates following adornment layers: ** This is an extension for use in ThinkGeo's Map Suite product line, see below, as it cannot be used stand alone. ** 1. LegendAdornment, 2. LogoAdornment, 3. MagneticDeclinationAdornment, 4. ScaleBarAdornment, 5. ScaleLineAdornment, 6. ScaleTextAdornment Wiki Documentation: http://wiki.thinkgeo.com/wiki/map_suite_api Supported Platforms: Windows, Linux, macOS, iOS, Android - Compatible Products - Map Suite Desktop for WPF Map Suite Desktop for WinForms Map Suite Mobile for Android Map Suite Mobile for iOS Map Suite Web for WebForms Map Suite Web for MVC Map Suite Web for WebAPI


Keywords
.NET, Adornments, Arrows, Bar, Compass, GIS, Legends, Line, Logos, Map, MapSuite, Mapping, North, Scale, Spatial, Suite, ThinkGeo, Titles, add-legends, adornment, directional-arrows, graticule, javascript, leaflet, leaflet-map, legend, logo, map-suite, openlayers, scalebar, web, webapi
Install
Install-Package ThinkGeo.MapSuite.Layers.Adornments -Version 10.6.6

Documentation

Adornments Sample for WebApi

Description

Learn how to add legends, scale bars, directional arrows, and many more adornments to your map.

Please refer to Wiki for the details.

Screenshot

Requirements

This sample makes use of the following NuGet Packages

MapSuite 10.0.0

About the Code

switch (adornmentType)
{
    case AdornmentsType.ScaleBarAdornment:
        adornmentLayer = new ScaleBarAdornmentLayer();
        break;

    case AdornmentsType.ScaleLineAdornment:
        adornmentLayer = new ScaleLineAdornmentLayer();
        break;

    case AdornmentsType.ScaleTextAdornment:
        adornmentLayer = new ScaleTextAdornmentLayer();
        break;

    case AdornmentsType.LogoAdornment:
        adornmentLayer = BuildLogoAdornmentLayer();
        break;

    case AdornmentsType.GraticuleAdornment:
        adornmentLayer = BuildGraticuleAdornmentLayer();
        break;

    case AdornmentsType.LegendAdornment:
        adornmentLayer = BuildLegendAdornmentLayer();
        break;

    case AdornmentsType.MagneticDeclinationAdornment:
        adornmentLayer = BuildMagneticDeclinationAdornmentLayer();
        break;

    default:
        adornmentLayer = null;
        break;
}

Getting Help

Map Suite WebAPI Wiki Resources

Map Suite WebAPI Product Description

ThinkGeo Community Site

ThinkGeo Web Site

Key APIs

This example makes use of the following APIs:

FAQ

  • Q: How do I make background map work?
    A: Backgrounds for this sample are powered by ThinkGeo Cloud Maps and require an API Key. These were sent to you via email when you signed up with ThinkGeo, or you can register now at https://cloud.thinkgeo.com. Once you get them, please update the code in the ThinkGeo Cloud URL in "thinkgeo.js" or "index.htm".

About Map Suite

Map Suite is a set of powerful development components and services for the .Net Framework.

About ThinkGeo

ThinkGeo is a GIS (Geographic Information Systems) company founded in 2004 and located in Frisco, TX. Our clients are in more than 40 industries including agriculture, energy, transportation, government, engineering, software development, and defense.