257 | """
258 | outputLeftMenu = ""
259 | outputJavaScript = ""
260 |
261 | for data in locationData:
262 | if data[1] == "Location History":
263 |
264 | split_data = data[2].split(",")
265 | tmp_data = split_data[1] + split_data[0]
266 | tmp_data = tmp_data.replace("Latitude:", "")
267 | tmp_data = tmp_data.replace("Longitude:", "")
268 | tmp_data = tmp_data[2:].replace(" ", ", ")
269 | #print(tmp_data)
270 | timestamp = str(datetime.datetime.utcfromtimestamp(int(data[0])))
271 | outputLeftMenu += "
" + timestamp + "Z UTC"
272 |
273 | outputJavaScript += """ var feature = new OpenLayers.Feature.Vector(
274 | new OpenLayers.Geometry.Point( """+ tmp_data + """ ).transform(epsg4326, projectTo),
275 | {description:'""" + timestamp + """ """ + data[2] + """'} ,
276 | {externalGraphic: 'marker.png', graphicHeight: 25, graphicWidth: 21, graphicXOffset:-12, graphicYOffset:-25 }
277 | );
278 | vectorLayer.addFeatures(feature);
279 | """
280 |
281 | outputMiddle = """
282 |