init
This commit is contained in:
parent
4a33c7c5dc
commit
b1dc7e9d0b
|
@ -21,7 +21,7 @@ function initMap(id, type) {
|
|||
var tMl = new ol.layer.Tile({
|
||||
title: "天地图路网",
|
||||
source: new ol.source.XYZ({
|
||||
url: "http://t4.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}"
|
||||
url: "http://t4.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b"
|
||||
})
|
||||
});
|
||||
map.addLayer(tMl);
|
||||
|
@ -30,7 +30,7 @@ function initMap(id, type) {
|
|||
var tAL = new ol.layer.Tile({
|
||||
title: "天地图文字标注",
|
||||
source: new ol.source.XYZ({
|
||||
url: 'http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}'
|
||||
url: 'http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b'
|
||||
})
|
||||
});
|
||||
map.addLayer(tAL);
|
||||
|
|
|
@ -274,7 +274,7 @@ var initTianDiTuMapLayer = function (map) {
|
|||
var tMl = new ol.layer.Tile({
|
||||
title: "天地图路网",
|
||||
source: new ol.source.XYZ({
|
||||
url: "http://t4.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}"
|
||||
url: "http://t4.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b"
|
||||
})
|
||||
});
|
||||
map.addLayer(tMl);
|
||||
|
@ -287,7 +287,7 @@ var initTianDiTuSatelliteLayer = function (map) {
|
|||
visible: false,
|
||||
title: "天地图卫星影像",
|
||||
source: new ol.source.XYZ({
|
||||
url: 'http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}'
|
||||
url: 'http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b'
|
||||
})
|
||||
});
|
||||
map.addLayer(tSL);
|
||||
|
@ -299,7 +299,7 @@ var initTianDiTuAnnotationLayer = function (map) {
|
|||
var tAL = new ol.layer.Tile({
|
||||
title: "天地图文字标注",
|
||||
source: new ol.source.XYZ({
|
||||
url: 'http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}'
|
||||
url: 'http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b'
|
||||
})
|
||||
});
|
||||
map.addLayer(tAL);
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
title: "天地图路网",
|
||||
source: new ol.source.XYZ({
|
||||
|
||||
url: "http://t4.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}"
|
||||
url: "http://t4.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b"
|
||||
}),
|
||||
|
||||
});
|
||||
|
@ -134,7 +134,7 @@
|
|||
var tian_di_tu_annotation = new ol.layer.Tile({
|
||||
title: "天地图文字标注",
|
||||
source: new ol.source.XYZ({
|
||||
url: 'http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}'
|
||||
url: 'http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b'
|
||||
})
|
||||
});
|
||||
|
||||
|
@ -150,7 +150,7 @@
|
|||
var tian_di_tu_satellite_layer = new ol.layer.Tile({
|
||||
title: "天地图卫星影像",
|
||||
source: new ol.source.XYZ({
|
||||
url: 'http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}'
|
||||
url: 'http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b'
|
||||
})
|
||||
});
|
||||
|
||||
|
|
|
@ -202,7 +202,7 @@ class LineItem(models.Model):
|
|||
id = models.UUIDField('id', primary_key=True, default=uuid.uuid4)
|
||||
quantity = models.IntegerField(default=0)
|
||||
cart = models.ForeignKey(Cart, null=True)
|
||||
metadata = models.ForeignKey(Metadata, on_delete=models.SET_NULL)
|
||||
metadata = models.ForeignKey(Metadata, on_delete=models.CASCADE)
|
||||
order = models.ForeignKey(Order, null=True)
|
||||
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ function initMap() {
|
|||
var tMl = new ol.layer.Tile({
|
||||
title: "天地图路网",
|
||||
source: new ol.source.XYZ({
|
||||
url: "http://t4.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}"
|
||||
url: "http://t4.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b"
|
||||
})
|
||||
});
|
||||
map.addLayer(tMl);
|
||||
|
@ -29,7 +29,7 @@ function initMap() {
|
|||
var tAL = new ol.layer.Tile({
|
||||
title: "天地图文字标注",
|
||||
source: new ol.source.XYZ({
|
||||
url: 'http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}'
|
||||
url: 'http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b'
|
||||
})
|
||||
});
|
||||
map.addLayer(tAL);
|
||||
|
|
|
@ -245,7 +245,7 @@
|
|||
title: "天地图路网",
|
||||
source: new ol.source.XYZ({
|
||||
|
||||
url: "http://t4.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}"
|
||||
url: "http://t4.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b"
|
||||
}),
|
||||
|
||||
});
|
||||
|
@ -255,7 +255,7 @@
|
|||
var tian_di_tu_annotation = new ol.layer.Tile({
|
||||
title: "天地图文字标注",
|
||||
source: new ol.source.XYZ({
|
||||
url: 'http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}'
|
||||
url: 'http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=16d2779796f67de83223d5d3ec42d34b'
|
||||
})
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue