Skip to content

Instantly share code, notes, and snippets.

View curlybracketsco's full-sized avatar

CurlyBrackets.co curlybracketsco

View GitHub Profile
@curlybracketsco
curlybracketsco / prettymapapp.js
Last active April 6, 2016 14:38
Beautiful Maps with Leaflet.js and Stamen tiles (More info and live demo here: http://curlybrackets.co/blog/2016/04/06/beautiful-maps-leaflet-stamen-tiles/)
var app = angular.module('prettymapapp', ['leaflet-directive']);
app.controller("MapController", [ "$scope", "$http", function($scope, $http) {
var AddCurrentLocationToMap = function(p){
$scope.mapCenter.lat = p.coords.latitude;
$scope.mapCenter.lon = p.coords.longitude;
$scope.mapCenter.zoom = 14;
}