PageRenderTime 22ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/gis/templates/gis/admin/openlayers.html

https://code.google.com/p/mango-py/
HTML | 37 lines | 28 code | 0 blank | 9 comment | 0 complexity | 8c22f68d2cb25b7c42a8d1663ad65dcb MD5 | raw file
Possible License(s): BSD-3-Clause
  1. {% block extrastyle %}
  2. <style type="text/css">
  3. #{{ id }}_map { width: {{ map_width }}px; height: {{ map_height }}px; }
  4. #{{ id }}_map .aligned label { float:inherit; }
  5. #{{ id }}_admin_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; }
  6. {% if not display_wkt %}#{{ id }} { display: none; }{% endif %}
  7. .olControlEditingToolbar .olControlModifyFeatureItemActive {
  8. background-image: url("{{ ADMIN_MEDIA_PREFIX }}img/gis/move_vertex_on.png");
  9. background-repeat: no-repeat;
  10. }
  11. .olControlEditingToolbar .olControlModifyFeatureItemInactive {
  12. background-image: url("{{ ADMIN_MEDIA_PREFIX }}img/gis/move_vertex_off.png");
  13. background-repeat: no-repeat;
  14. }
  15. </style>
  16. <!--[if IE]>
  17. <style type="text/css">
  18. /* This fixes the mouse offset issues in IE. */
  19. #{{ id }}_admin_map { position: static; vertical-align: top; }
  20. /* `font-size: 0` fixes the 1px border between tiles, but borks LayerSwitcher.
  21. Thus, this is disabled until a better fix is found.
  22. #{{ id }}_map { width: {{ map_width }}px; height: {{ map_height }}px; font-size: 0; } */
  23. </style>
  24. <![endif]-->
  25. {% endblock %}
  26. <span id="{{ id }}_admin_map">
  27. <script type="text/javascript">
  28. //<![CDATA[
  29. {% block openlayers %}{% include "gis/admin/openlayers.js" %}{% endblock %}
  30. //]]>
  31. </script>
  32. <div id="{{ id }}_map"{% if LANGUAGE_BIDI %} dir="ltr"{% endif %}></div>
  33. <a href="javascript:{{ module }}.clearFeatures()">Delete all Features</a>
  34. {% if display_wkt %}<p> WKT debugging window:</p>{% endif %}
  35. <textarea id="{{ id }}" class="vWKTField required" cols="150" rows="10" name="{{ name }}">{{ wkt }}</textarea>
  36. <script type="text/javascript">{% block init_function %}{{ module }}.init();{% endblock %}</script>
  37. </span>