Mapping - 2

Developer
Size
2,925 Kb
Views
14,168

How do I make an mapping - 2?

What is a mapping - 2? How do you make a mapping - 2? This script and codes were developed by Nick Walsh on 06 November 2022, Sunday.

Mapping - 2 Previews

Mapping - 2 - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Mapping - 2</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ canvas { background: #c9c4bc; display: block;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <script src='http://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js'></script>
<script src='http://s3-us-west-2.amazonaws.com/s.cdpn.io/68727/topojson.js'></script> <script src="js/index.js"></script>
</body>
</html>

Mapping - 2 - Script Codes CSS Codes

canvas { background: #c9c4bc; display: block;
}

Mapping - 2 - Script Codes JS Codes

(function() { var canvas, ctx, height, path, projection, width; height = window.innerHeight; width = window.innerWidth; projection = d3.geo.mercator().center([-81.369515, 28.538479]).scale(400000).translate([width / 2, height / 2]); canvas = d3.select('body').append('canvas').attr('height', height).attr('width', width); ctx = canvas.node().getContext('2d'); path = d3.geo.path().projection(projection).context(ctx); d3.json('https://s3-us-west-2.amazonaws.com/s.cdpn.io/68727/orlando.json', function(error, orlando) { ctx.beginPath(); path(topojson.feature(orlando, orlando.objects.neighborhoods)); ctx.fillStyle = '#dcd8d2'; ctx.fill(); ctx.lineWidth = '2'; ctx.strokeStyle = '#c9c4bc'; ctx.stroke(); ctx.beginPath(); path(topojson.feature(orlando, orlando.objects.streets)); ctx.lineWidth = '1.5'; ctx.strokeStyle = 'rgba(0, 0, 0, 0.08)'; return ctx.stroke(); });
}).call(this);
Mapping - 2 - Script Codes
Mapping - 2 - Script Codes
Home Page Home
Developer Nick Walsh
Username nickawalsh
Uploaded November 06, 2022
Rating 3
Size 2,925 Kb
Views 14,168
Do you need developer help for Mapping - 2?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Nick Walsh (nickawalsh) Script Codes
Create amazing web content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!