Use olx options ns in icon and geojson examples
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ var styleFunction = function(feature, resolution) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var vectorSource = new ol.source.GeoJSON(
|
var vectorSource = new ol.source.GeoJSON(
|
||||||
/** @type {ol.source.GeoJSONOptions} */ ({
|
/** @type {olx.source.GeoJSONOptions} */ ({
|
||||||
object: {
|
object: {
|
||||||
'type': 'FeatureCollection',
|
'type': 'FeatureCollection',
|
||||||
'crs': {
|
'crs': {
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ var styleArray = [new ol.style.Style({
|
|||||||
})];
|
})];
|
||||||
|
|
||||||
var vector = new ol.layer.Vector({
|
var vector = new ol.layer.Vector({
|
||||||
source: new ol.source.GeoJSON(/** @type {ol.source.GeoJSONOptions} */ ({
|
source: new ol.source.GeoJSON(/** @type {olx.source.GeoJSONOptions} */ ({
|
||||||
object: {
|
object: {
|
||||||
'type': 'FeatureCollection',
|
'type': 'FeatureCollection',
|
||||||
'features': [{
|
'features': [{
|
||||||
|
|||||||
Reference in New Issue
Block a user