ABQ Historic Places Map in Your Website

11 Jul
Map of ABQ historic Places from GitHub

Map of ABQ historic Places from GitHub

I converted the Albuquerque Historic Places KML from the City to GeoJSON. By posting the GeoJSON on Github it is automatically mapped and you can embed that map in your website. All you need to do is enter this line in your HTML:
<script src=”https://embed.github.com/view/geojson/PaulCrickard/ABQ-GeoJSON/master/ABQHistoricPlace.geojson”&gt;

</script>
This works with any map you find on GitHub. The URL is format is:
https://embed.github.com/view/geojson/

followed by:

<username>/<repo>/<ref>/<path_to_file>

So a sample website would look like this:

<html>
<head><title>My Map of ABQ Historic Places</title>
</head>
<body>
<h1>ABQ Historic Map</h1>

<script src=”https://embed.github.com/view/geojson/PaulCrickard/ABQ-GeoJSON/master/ABQHistoricPlace.geojson”></script&gt;
</body>

</html>

Advertisements

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

%d bloggers like this: