geography-apis-sdk
Version:
SDK for making requests to Geography APIs
29 lines (24 loc) • 493 B
JavaScript
const LatLng = require('./LatLng');
/**
* Represents a map.
*/
class Map {
/**
* Creates an instance of the Map class.
* @param {object} data - The map data.
*/
constructor(data) {
if(typeof data == 'undefined') return;
/**
* The URL of the map.
* @type {string}
*/
this.svg = data.svg;
/**
* The URL of the map in PNG format.
* @type {string}
*/
this.png = data.png;
}
}
module.exports = Map;