Skip to content

Instantly share code, notes, and snippets.

@AnalogJ
Last active December 22, 2015 09:49
Show Gist options
  • Save AnalogJ/6454502 to your computer and use it in GitHub Desktop.
Save AnalogJ/6454502 to your computer and use it in GitHub Desktop.
Chi's map design.
//PHP Pages
<%
id = request["id"];
timestamp = request["timestamp"]
points = Database lookup for points where id = id && timestamp == timestamp
set header content exipry = never
%>
<%= JSON.stringify(points) %>
//PHP Pages
<script type="text/javascript" src="google api.js">
<script type="text/javascript" src="generate.js?id=1100&timestamp=12321321321">
<div id="map">
</div>
<script type="text/javascript">
$('#map').loadGoogleJavascript(points)
//points is comming from the generate.js file refrerenced above.
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment