A fork of Tom Carden’s implementation of Jarke J. van Wijk and Wim A.A. Nuij’s smooth and efficient zooming and panning for Polymaps.
xxxxxxxxxx
<html>
<head>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/simplegeo/polymaps/v2.3.0/polymaps.min.js"></script>
<script type="text/javascript" src="fly.js"></script>
<style type="text/css">
html, body {
width: 100%;
height: 100%;
}
body {
margin: 0;
background: #000;
}
svg {
display: block;
overflow: hidden;
width: 100%;
height: 100%;
}
#copy {
display: none;
}
#logo {
display: none;
}
input {
position: absolute;
right: 60px;
top: 10px;
}
button {
position: absolute;
right: 10px;
width: 45px;
top: 10px;
}
</style>
</head>
<body id="map">
<script type="text/javascript" src="map.js"></script>
<div id="copy"></div>
<img id="logo"/>
<form id="search"><input type="search" size="32" name="q" value="London"/><button type="submit" name="submit" disabled>Go!</button></form>
</body>
</html>
Updated missing url https://cdn.rawgit.com/simplegeo/polymaps/v2.3.0/polymaps.min.js to https://cdn.jsdelivr.net/gh/simplegeo/polymaps/v2.3.0/polymaps.min.js
https://cdn.rawgit.com/simplegeo/polymaps/v2.3.0/polymaps.min.js