Learn R Programming

googleway (version 2.0.0)

objPolygonCoords: Obj Polygon Coords

Description

Creates a list object that can be converted into the required JSON for plotting coordinates as polygons

Usage

objPolygonCoords(obj, ids, otherColumns)

Arguments

obj

data.frame consisting of columns 'lat' and 'lng'

ids

vector of ids for each path/line

otherColumns

vector of attribute columns (e.g. stroke_fill, stroke_weight) that are to be kept in the output