Created
September 25, 2015 09:24
-
-
Save ungentilgarcon/0b2f45407aa9316bb5d3 to your computer and use it in GitHub Desktop.
well indented
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Meteor.isClient) { | |
Template.map.rendered = function() { | |
L.Icon.Default.imagePath = 'packages/bevanhunt_leaflet/images'; | |
var url = 'http://tile.stamen.com/toner/{z}/{x}/{y}.png'; | |
var attrib = 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors'; | |
var layer = new L.TileLayer(url, { | |
minZoom: 1, | |
maxZoom: 16, | |
attribution: attrib | |
}); | |
var map = L.map('map').setView([51.505, -0.09], 13); | |
map.addLayer(layer); | |
this.map = map; | |
var svg = d3.select(map.getPanes().overlayPane).append("svg"); | |
var g = svg.append("g").attr("class", "leaflet-zoom-hide"); | |
/*D3js*/ | |
var circle = g.append("circle") | |
.attr("cx", 51.505) | |
.attr("cy", -0.09) | |
.attr("r", 25); | |
console.log("g.circle",g.circle) | |
var circle = g.append("circle") | |
.attr("cx", 51.88) | |
.attr("cy", 44) | |
.attr("r", 25); | |
console.log("g.circle",g.circle) | |
} | |
} | |
if (Meteor.isServer) { | |
Meteor.startup(function() { | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment