Commit f7f60467 authored by Tania Gómez's avatar Tania Gómez

change _feature to feature on escuelas & supermercados layers

parent 319b9476
...@@ -259,7 +259,7 @@ let layer_supermercados = new L.geoJson(null, { ...@@ -259,7 +259,7 @@ let layer_supermercados = new L.geoJson(null, {
attribution: "", attribution: "",
pane: "pane_supermercados", pane: "pane_supermercados",
//onEachFeature: pop_escuelas, //onEachFeature: pop_escuelas,
pointToLayer: (_feature, latlng) => { pointToLayer: (feature, latlng) => {
// let context = { // let context = {
// feature: feature, // feature: feature,
// variables: {} // variables: {}
...@@ -315,7 +315,7 @@ let layer_escuelas = new L.geoJson(null, { ...@@ -315,7 +315,7 @@ let layer_escuelas = new L.geoJson(null, {
attribution: "", attribution: "",
pane: "pane_escuelas", pane: "pane_escuelas",
//onEachFeature: pop_escuelas, //onEachFeature: pop_escuelas,
pointToLayer: (_feature, latlng) => { pointToLayer: (feature, latlng) => {
// let context = { // let context = {
// feature: feature, // feature: feature,
// variables: {} // variables: {}
...@@ -535,15 +535,13 @@ let layer_agricolapv = { ...@@ -535,15 +535,13 @@ let layer_agricolapv = {
paint: { paint: {
"fill-opacity": 0, "fill-opacity": 0,
"fill-color": [ "fill-color": [
"match", "match", ["get", "cultivo"],
["get", "cultivo"],
"Sorgo grano", "#ff5500", "Sorgo grano", "#ff5500",
"Frijol", "#8e1973", "Frijol", "#8e1973",
"#d1ff73" "#d1ff73"
], ],
"fill-outline-color": [ "fill-outline-color": [
"match", "match", ["get", "cultivo"],
["get", "cultivo"],
"Sorgo grano", "#e60000", "Sorgo grano", "#e60000",
"Frijol", "#a80084", "Frijol", "#a80084",
"#aaff00" "#aaff00"
...@@ -564,15 +562,13 @@ let layer_agricolaoi = { ...@@ -564,15 +562,13 @@ let layer_agricolaoi = {
paint: { paint: {
"fill-opacity": 0, "fill-opacity": 0,
"fill-color": [ "fill-color": [
"match", "match", ["get", "cultivo"],
["get", "cultivo"],
"Sorgo grano", "#ff5500", "Sorgo grano", "#ff5500",
"Frijol", "#8e1973", "Frijol", "#8e1973",
"#d1ff73" "#d1ff73"
], ],
"fill-outline-color": [ "fill-outline-color": [
"match", "match", ["get", "cultivo"],
["get", "cultivo"],
"Sorgo grano", "#e60000", "Sorgo grano", "#e60000",
"Frijol", "#a80084", "Frijol", "#a80084",
"#aaff00" "#aaff00"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment