Darius Damalakas avatar Darius Damalakas committed e35d36e Draft

sample demo to generate html file with one marker on google maps

Comments (0)

Files changed (1)

+import pygmaps 
+import webbrowser 
+mymap = pygmaps.maps(37.428, -122.145, 16)
+#mymap.setgrids(37.42, 37.43, 0.001, -122.15, -122.14, 0.001)
+mymap.addpoint(37.427, -122.145, "#0000FF") 
+#mymap.addradpoint(37.429, -122.145, 95, "#FF0000")
+#path = [(37.429, -122.145),(37.428, -122.145),(37.427, -122.145),(37.427, -122.146),(37.427, -122.146)] 
+#mymap.addpath(path,"#00FF00") 
+
+mymap.draw('./mymap.draw.html') 
+url = url = './mymap.draw.html'
+webbrowser.open_new_tab(url) 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.