Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh joshkopecek

View GitHub Profile
View designer.html
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="echoes-creator">
<template>
<style>
:host {
View geoJSONValidation.js
// a function to validate a correctly formed geoJSON Point for a Mongoose / Mongo Schema
// can be used in a schema as Point
// The lat lng limits correspond to Google Maps' limits
export var Point = {
type: {
$type: String,
match: [ /^Point$/, '{VALUE} must be Point'],
default: 'Point'
},