UNPKG
carto
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.1
1.0.0
0.18.2
0.18.1
0.18.0
0.17.3
0.17.2
0.16.3
0.16.2
0.16.1
0.16.0
0.15.3
0.15.2
0.15.1
0.15.0
0.14.1
0.14.0
0.13.0
0.12.1
0.11.0
0.10.0
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.1
0.8.0
0.7.1
0.7.0
0.6.0
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Mapnik Stylesheet Compiler
github.com/mapbox/carto
mapbox/carto
carto
/
lib
/
carto
/
tree
/
field.js
18 lines
(14 loc)
•
287 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(
function
(
tree
) { tree.
Field
=
function
Field
(
content
) {
this
.
value
= content ||
''
; }; tree.
Field
.
prototype
= {
is
:
'field'
,
toString
:
function
(
) {
return
'['
+
this
.
value
+
']'
; },
'ev'
:
function
(
) {
return
this
; } }; })(
require
(
'../tree'
));