Uncategorized

#Mapping js

happy Friday world 💻🚀📱🖥🎼💥🔥🌹🇲🇦😊

1
// Initialization
2
var width = ‘100%’,
3
height = ‘100%’,
4
sizeModifier = 50,
5
hue = 0, colors = {},
6
meteorites;
7

8
var projection = d3.geo.mercator()
9
.translate([780,360])
10
.scale(300);
11

12
var zoom = d3.behavior.zoom()
13
.translate([0, 0])
14
.scale(1)
15
.scaleExtent([.5, 18])
16
.on(“zoom”, zoomed);
17

18
var path = d3.geo.path()
19
.projection(projection);
20

21
var svg = d3.select(‘#container’)
22
.append(‘svg’)

View original post

Advertisements
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s