Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

commonwealth-of-puerto-rico/atlaspr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AtlasPR

Free, open, interactive, detailed maps of Puerto Rico for your web applications. Visit our homepage and examples page.

AtlasPR

Usage

  1. Download the library.
  2. Unzip it (by default the directory will be called atlaspr-master).
  3. Create a new directory: mkdir mymaps.
  4. Copy the javascript code and geotiles from Atlas to your directory:
   cp -r atlaspr-master/geotiles mymaps/```
5. Create an html file inside mymaps with this: 

```html
<!DOCTYPE html>
<meta charset="utf-8">
<script src="./js/lib/d3.js"></script>
<script src="./js/lib/klass.js"></script>
<script src="./js/atlaspr.js"></script>
<body>
  <div id = 'map'></div>
  <script type = 'text/javascript'>
    var node = document.getElementById("map");
    new AtlasPR({node: node, tiles: ['pueblos']});
  </script>
  1. Run in your terminal: python -m SimpleHTTPServer
  2. Go to localhost:8000 in your web browser.
  3. Go crazy!

API Documentation

Documentation for AtlasPR lives in our website.

Compatibility

AtlasPR does not work in old browsers, particularly in Internet Explorer 8 and less. This is because we use SVG to render tiles. SVG is a web standard for scalable web graphics, and it's implemented in every modern browser.

Acknowledgements

This library is just a few lines of code written in the shoulders of an awesome giant called d3.js.

Contributions

Feel free to open issues whenever you find a bug or think about that awesome feture you want implemented in this library. Even better, fork the repo, implement them and submit a pull request.

About

Interactive, detailed maps of Puerto Rico

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%