Class: GeoJsonShapefile

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

GeoJsonShapefile

Used to fetch and parse GeoJSON files

Constructor

new GeoJsonShapefile()

Properties:
Name Type Description
onFailureCallback Object callback(error)
onSuccessCallback Object callback(shapeRecords);
Version:
  • 4.1.00

Methods

getShapeFile(dataSource)

Fetches shapefile and fires either the success or failure callback
Parameters:
Name Type Description
dataSource String shapefile url or geojson string