Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. {% block script %}
  2. <script src="{{ MEDIA_URL }}css/Leaflet-0.6.2/src/leaflet.js"></script>
  3. <script type="text/javascript">
  4. var map = L.map('map');
  5. var osm = new L.TileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
  6. maxZoom: 18
  7. });
  8. var london = new L.LatLng(51.505, -0.09); // geographical point (longitude and latitude)
  9. map.setView(london, 13).addLayer(osm);
  10. var marker = L.marker([51.5, -0.09]).addTo(map);
  11. var circle = L.circle([51.508, -0.11], 500, {
  12. color: 'red',
  13. fillColor: '#f03',
  14. fillOpacity: 0.5
  15. }).addTo(map);
  16. var polygon = L.polygon([
  17. [51.509, -0.08],
  18. [51.503, -0.06],
  19. [51.51, -0.047]
  20. ]).addTo(map);
  21. marker.bindPopup("<b>Hello world!</b><br>I am a popup.").openPopup();
  22. circle.bindPopup("I am a circle.");
  23. polygon.bindPopup("I am a polygon.");
  24. var popup = L.popup()
  25. .setLatLng([51.5, -0.09])
  26. .setContent("I am a standalone popup.")
  27. .openOn(map);
  28. </script>
  29. {% endblock %}
  30.  
  31. {% block body %}
  32. <br/>
  33. <h2>Welcome to InCTF 2013 Second Round Portal</h2>
  34. <br>
  35. <table style="border:1px dashed #ccc">
  36. <div id="map"></div>
  37. </table>
  38. <br>
  39. <br>
  40. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement