-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mapbox templates #35
mapbox templates #35
Changes from 2 commits
a6df35d
fe1e8b8
fc89481
ff84ad9
0dd99c4
b0fe96e
9ed7bbc
124c010
b9fde86
60299a9
ca9bb11
a5ea263
cd05c49
b21dab4
2ff0dc1
375ee31
93723cc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// function Location() { | ||
// var options = { | ||
// enableHighAccuracy: true | ||
// }, | ||
// inner_pos = {}, | ||
// dfd = new $.Deferred(), | ||
// moved = function(pos) { | ||
// inner_pos = pos || {}; | ||
// dfd.resolve() | ||
// }, | ||
// fail = function(err) { | ||
// if (err) { | ||
// console.warn('ERROR(' + err.code + '): ' + err.message); | ||
// } | ||
// dfd.reject() | ||
// }; | ||
// | ||
// this.__defineGetter__("lat", function() { | ||
// return inner_pos.coords ? inner_pos.coords.latitude : null; | ||
// }); | ||
// | ||
// this.__defineGetter__("lng", function() { | ||
// return inner_pos.coords ? inner_pos.coords.longitude : null; | ||
// }); | ||
// | ||
// this.WatchID = navigator.geolocation.watchPosition(moved, fail, options); | ||
// | ||
// this.ready = dfd.promise() | ||
// } | ||
// | ||
// | ||
// | ||
|
||
jQuery(document).ready(function () { | ||
L.mapbox.accessToken ='pk.eyJ1IjoiamR1bmdhbiIsImEiOiJlOTl6MFpNIn0.-3o5vIOCjkfXd-7ibZrb8A' | ||
map = L.mapbox.map('map-canvas', 'jdungan.jbbebonl').setView([36.1587336,-95.9940543],16); | ||
|
||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% spaceless %} | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
|
||
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.0.1/mapbox.js'></script> | ||
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.0.1/mapbox.css' rel='stylesheet' /> | ||
|
||
<script src= "http://code.jquery.com/jquery-1.10.2.min.js"></script> | ||
<script src= "http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script> | ||
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.3.13/d3.min.js" charset="utf-8"></script> | ||
|
||
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.0.1/mapbox.js'></script> | ||
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.0.1/mapbox.css' rel='stylesheet' /> | ||
|
||
</head> | ||
<body> | ||
|
||
<div id="page" class="page" data-role="page" > | ||
|
||
<div data-role="header" data-position="fixed"> | ||
</div><!-- /header --> | ||
|
||
<div data-role="content" > | ||
|
||
{% block content %} | ||
<p> Content goes here </p> | ||
{% endblock %} | ||
|
||
</div> <!-- End of content --> | ||
|
||
</div><!-- End of page --> | ||
|
||
|
||
</body> | ||
</html>{% endspaceless %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,10 @@ | |
<link href="{{ static('vendor/bootstrap-3.2.0-dist/css/bootstrap-theme.min.css') }}" rel="stylesheet"> | ||
<link href="{{ static('css/bpz.css') }}" rel="stylesheet"> | ||
|
||
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.0.1/mapbox.js'></script> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this be moved into the scripts section before body_js? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.0.1/mapbox.css' rel='stylesheet' /> | ||
|
||
|
||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> | ||
<!--[if lt IE 9]> | ||
|
@@ -47,7 +51,6 @@ | |
|
||
<script src="{{ static('vendor/jquery/jquery-1.11.1.min.js') }}"></script> | ||
<script src="{{ static('vendor/bootstrap-3.2.0-dist/js/bootstrap.min.js') }}"></script> | ||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA4JQW3kTKVpzBIroZ1mXguTPt2J1F1zXU"></script> | ||
<script src="{{ static('js/bpz.js') }}"></script> | ||
{% block body_js -%} | ||
{%- endblock body_js %} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
{% extends "bpz/base.jinja2" %} | ||
|
||
{% block content %} | ||
|
||
<div id="map-canvasd" | ||
class="ui-content search_map" | ||
role="main" data-role="content" data-theme="b"> | ||
</div> | ||
|
||
|
||
|
||
<a>Get notified of building, planning, and zoning meetings in the Pearl District»</a> | ||
|
||
|
||
<script> | ||
|
||
|
||
|
||
</script> | ||
|
||
|
||
{% endblock content %} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,4 @@ | |
{% endblock %} | ||
|
||
{% block body_js -%} | ||
<script src="{{ static('js/home.js') }}"></script> | ||
{%- endblock body_js %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we remove home.js as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. home.js replaced by mapbox.js functions in bpz.js There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed home.js |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% extends 'bpz/base.jinja2' %} | ||
{% block content %} | ||
|
||
<script> | ||
|
||
bound={{hood.boundary}} | ||
|
||
|
||
</script> | ||
|
||
<div id="map_content" | ||
class="ui-content search_map" | ||
role="main" data-role="content" data-theme="b"> | ||
</div> | ||
<div> | ||
|
||
<p>Contact</p>{{ hood.contact}} | ||
<p>Phone</p>{{ hood.phone}} | ||
<p>Email</p>{{ hood.email}} | ||
<p>Meetings</p>{{ hood.meetings}} | ||
<p>Website</p>{{ hood.url}} | ||
|
||
<a >BUTTON: View building, planning, and zoning meetings in the Pearl District</a> | ||
|
||
</div> | ||
|
||
{% endblock content %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends 'bpz/base.jinja2' %} | ||
|
||
{% block content %} | ||
<p>Get informed about public meetings affecting your neighborhood. Sign up to receive notifications:</p> | ||
|
||
<form action="" method="post" data-ajax="false"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<input type="submit" value="Submit" /> | ||
</form> | ||
{% endblock content %} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% extends 'base.html' %} | ||
{% block content %} | ||
|
||
<div id="map_content" | ||
class="ui-content search_map" | ||
role="main" data-role="content" data-theme="b"> | ||
</div> | ||
<div> | ||
Hi, this is some information about what this app is, what it does, and why it needs to use your GPS to find your neighborhood. Learn more» | ||
</div> | ||
|
||
{% endblock content %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this comment block be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 removing commented code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+2 for implementing commented code