Skip to content

Instantly share code, notes, and snippets.

import React, { Component } from 'react';
import { DrawingManager } from 'react-google-maps/lib/components/drawing/DrawingManager';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { mapConfig } from '../../../../constants/component-configs';
import {
setShapeEventListener,
getShapeArea,
getFiltersFromGoogleMapsShape,
convertFromGoogleMapsShape
const polygonEvents = ['set_at', 'insert_at', 'remove_at'];
const circleEvents = ['center_changed', 'radius_changed'];
import turfCircle from '@turf/circle';
import { polygon as turfPolygon } from '@turf/helpers';
import { featureToWKT } from './map-utilities';
import { cond, has, hasIn, pipe, path } from 'ramda';
export const setShapeEventListener = (shape, action) => {
if (shape.radius) {
circleEvents.forEach(event => {
meteor-base@1.0.4 # Packages every Meteor app needs to have
mobile-experience@1.0.4 # Packages for a great mobile UX
reactive-var@1.0.11 # Reactive variable for tracker
tracker@1.1.1 # Meteor's client-side reactive programming library
standard-minifier-css@1.3.2 # CSS minifier run for production mode
standard-minifier-js@1.2.1 # JS minifier run for production mode
es5-shim@4.6.15 # ECMAScript 5 compatibility for older browsers.
static-html
accounts-password@1.3.3
{
"name": "adminpanel",
"private": true,
"main": "server.js",
"browser": "client.js",
"scripts": {
"start": "meteor run"
},
"dependencies": {
"accounting": "^0.4.1",