Last active
December 22, 2015 09:49
-
-
Save AnalogJ/6454502 to your computer and use it in GitHub Desktop.
Chi's map design.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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) %> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//PHP Pages | |
<script type="text/javascript" src="google api.js"> | |
<script type="text/javascript" src="generate.js?id=1100×tamp=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