Class: Location

Portal Home

CMaps Analytics Online Portal

Javascript API Docs

How to Use CMaps API

Working with Data

Working with Layers

Including Custom Components

View API Docs

Request Access

Developer Resources

Developers Introduction to CMaps Designer

Strategies for Integrating CMaps Analytics

Embed and Connect CMaps Templates in HTML5 App

Creating custom CMaps Analytics Plugin & Property Sheet

Security Guide

Location

A Location represents a lat,lng point on the map.

Constructor

new Location()

Properties:
Name Type Description
lat String The corresponding layer's index
lon String The corresponding layer's index
Version:
  • 1.5.00

Methods

locationHasSameCoordinates(loc) → {boolean}

Check to see if the given location is identical
Parameters:
Name Type Description
loc Object centigon.mapping.Location
Returns:
Type
boolean

toCsvLatLon() → {String}

Returns lat,lon
Returns:
Type
String

toCsvLonLat() → {String}

Returns lon,lat
Returns:
Type
String