projection
This commit is contained in:
parent
85541ed4b1
commit
7c93f2c7de
|
@ -58,7 +58,7 @@ class Feature(models.Model):
|
|||
feature_type_name.short_description = "Feature Type"
|
||||
|
||||
def get_geojson(self):
|
||||
geom = json.loads(self.geometry.geojson)
|
||||
geom = json.loads(self.geometry.transform(3785, True).geojson)
|
||||
properties = {
|
||||
'id': self.id,
|
||||
'preferred_name': self.preferred_name
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
$(function() {
|
||||
map = new OpenLayers.Map('map', {});
|
||||
var baseLayer = new OpenLayers.Layer.OSM( "Openstreetmap Base Layer");
|
||||
var baseLayer = new OpenLayers.Layer.OSM( "Openstreetmap Base Layer", {isBaseLayer: true});
|
||||
// map.addLayer(baseLayer);
|
||||
var geojson_format = new OpenLayers.Format.GeoJSON();
|
||||
var jsonLayer = new OpenLayers.Layer.Vector();
|
||||
|
|
Loading…
Reference in New Issue
Block a user