feat: add comprehensive GitHub workflow and development tools
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<kml xmlns="http://earth.google.com/kml/{% block kml_version %}2.1{% endblock %}">
|
||||
<Document>{% block name %}{% endblock %}
|
||||
{% block placemarks %}{% endblock %}
|
||||
</Document>
|
||||
</kml>
|
||||
@@ -0,0 +1,8 @@
|
||||
{% extends "gis/kml/base.kml" %}
|
||||
{% block placemarks %}{% for place in places %}
|
||||
<Placemark>
|
||||
<name>{% if place.name %}{{ place.name }}{% else %}{{ place }}{% endif %}</name>
|
||||
<description>{% if place.description %}{{ place.description }}{% else %}{{ place }}{% endif %}</description>
|
||||
{{ place.kml|safe }}
|
||||
</Placemark>{% endfor %}{% endblock %}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{% extends "gis/openlayers.html" %}
|
||||
{% load l10n %}
|
||||
|
||||
{% block options %}{{ block.super }}
|
||||
options['default_lon'] = {{ default_lon|unlocalize }};
|
||||
options['default_lat'] = {{ default_lat|unlocalize }};
|
||||
options['default_zoom'] = {{ default_zoom|unlocalize }};
|
||||
{% endblock %}
|
||||
|
||||
{% block base_layer %}
|
||||
var base_layer = new ol.layer.Tile({source: new ol.source.OSM()});
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,33 @@
|
||||
{% load i18n l10n %}
|
||||
|
||||
<div id="{{ id }}_div_map" class="dj_map_wrapper">
|
||||
{# RemovedInDjango51Warning: when the deprecation ends, remove data-width and data-height attributes. #}
|
||||
<div id="{{ id }}_map" class="dj_map" data-width="{{ map_width }}" data-height="{{ map_height }}"></div>
|
||||
{% if not disabled %}<span class="clear_features"><a href="">{% translate "Delete all Features" %}</a></span>{% endif %}
|
||||
{% if display_raw %}<p>{% translate "Debugging window (serialized value)" %}</p>{% endif %}
|
||||
<textarea id="{{ id }}" class="vSerializedField required" cols="150" rows="10" name="{{ name }}"
|
||||
{% if not display_raw %} hidden{% endif %}>{{ serialized }}</textarea>
|
||||
<script>
|
||||
{% block base_layer %}
|
||||
var base_layer = new ol.layer.Tile({
|
||||
source: new ol.source.XYZ({
|
||||
attributions: "NASA Worldview",
|
||||
maxZoom: 8,
|
||||
url: "https://map1{a-c}.vis.earthdata.nasa.gov/wmts-webmerc/" +
|
||||
"BlueMarble_ShadedRelief_Bathymetry/default/%7BTime%7D/" +
|
||||
"GoogleMapsCompatible_Level8/{z}/{y}/{x}.jpg"
|
||||
})
|
||||
});
|
||||
{% endblock %}
|
||||
{% block options %}var options = {
|
||||
base_layer: base_layer,
|
||||
geom_name: '{{ geom_type }}',
|
||||
id: '{{ id }}',
|
||||
map_id: '{{ id }}_map',
|
||||
map_srid: {{ map_srid|unlocalize }},
|
||||
name: '{{ name }}'
|
||||
};
|
||||
{% endblock %}
|
||||
var {{ module }} = new MapWidget(options);
|
||||
</script>
|
||||
</div>
|
||||
Reference in New Issue
Block a user