Χρήση Επεξεργασία

Κώδικας Αποτέλεσμα
Απλός χάρτης με ένα δείκτη, επιλεγμένο μέγεθος, και χωρίς μικρογραφία χάρτη
{{Graph:Street map with marks | width=400 | height=150 | lat=37.8 | lon=-122.4 | zoom=5 | minimap=false |

  { "lat": 37.8, "lon": -122.4 }

}}
Δύο δείκτες με ετικέτες - ένας με σχήμα διαμαντιού, ένας χρησιμοποιεί εικόνα από τα Commons
Η ετικέτα κειμένου μπορεί να προσαρμοστεί με όλες τις παραμέτρους του Vega text mark βάζοντας "text" πριν το όνομα
{{Graph:Street map with marks | lat=40.816667 | lon=14.433333 | zoom=6 |

{"lat": 40.816667, "lon": 14.433333, "shape": "diamond", "size": 70, "offsetY": -10, "text": "Όρος Βεζούβιος", "textFontWeight": "bold", "textFontSize": 16, "textColor": "#2A4B8D"},

{"lat": 40.948333, "lon": 15.635556, "img": "Volcano red 32x32.svg", "width": 16, "height": 16,  "offsetY": -20, "text": "Όρος Βουλτούρε", "textFontWeight": "bold", "textFontSize": 16, "textColor": "#2A4B8D"}

}}
Δεδομένα από σύνολο δεδομένων στα Commons
Ίδιο με το απαραπάνω, αλλά αυτή τη φορά τα δεδομένα είναι αποθηκευμένα στα Commons σε πίνακα: Data:Sandbox/Yurik/Street map with marks sample.tab
{{Graph:Street map with marks | lat=40.948333 | lon=15.635556 | zoom=6 | table=Sandbox/Yurik/Street map with marks sample.tab}}

Δείτε ή επεξεργαστείτε τα πρωτογενή δεδομένα του γραφήματος.

Εμφάνιση όλων των τόπων πολιτιστικής κληρονομιάς της Αρμενίας, μέσω ερωτήματος στα Wikidata
Τα αποτελέσματα του ερωτήματος θα πρέπεινα έχουν τις ίδιες στήλες (πεδία) με τα άλλα παραδείγματα (text, img, ...), εκτός από τις συντεταγμένες που θα πρέπει να επιστραφούν ως στήλη coord
{{Graph:Street map with marks | lat=40.347 | lon=47.260 | zoom=6 | colorScaleField=type | wdqs=
# Κάθε τοποθεσία θα πρέπει να εμφανιστεί μόνο μία φορά. Αυτό το ερώτημα μπορεί να εξαγάγει όλες τις ίδιες τιμές με τα άλλα παραδείγματα, όπως "text", "img", και άλλα.
SELECT (SAMPLE(?coord) as ?coord) (SAMPLE(?type) as ?type)
WHERE {
  ?item wdt:P3170 ?heritageId .
  ?item wdt:P625 ?coord .
  ?item wdt:P31 ?type .
}
GROUP BY ?item
}}

Δείτε το πηγαίο ερώτημα Wikidata.

{{Graph:Street map with marks | lat=-33.8688 | lon=151.2093 | zoom=10 |
{
  "lat": -33.8688,
  "lon": 151.2093,
  "img": "Opera_House_and_ferry._Sydney.jpg",
  "width": 48,
  "height": 36,
  "text": "Σίδνεϊ",
  "textFontWeight": "bold",
  "textFontSize": 20,
  "textColor": "#00f",
  "textAlign": "right",
  "textDx": -30
}
}}

The data template parameter must be a comma separated list of "JSON" objects. Each object starts with a "{", has a list of comma separated list of key-value pairs, and ends with a "}". The key may be one of the following values (used no more than once per each object):

Built-in marker shapes
shape "circle" (default), "square", "cross", "diamond", "triangle-up", "triangle-down" (docs)
color shape fill color, e.g. "#ff0000" (red - default)
strokeColor shape outline color
size shape size (number)
Text labels (see more info)
text Label text
textAlign Label's horizontal alignment relative to the marker - "left", "right", "center". By default, left for LTR, right for RTL languages.
textBaseline Vertical alignment: "middle" (default), "top", "bottom"
textColor Label text color, e.g. "#ff0000" (red)
textDx, textDy Horizontal and vertical distance from the marker
angle Draw text at an angle
radius/theta Radial positioning of the label relative to the marker
font, fontSize, fontWeight, fontStyle Font name, size, boldness, and style
Image markers
img image, e.g. Volcano red 32x32.svg
height, width Size of the image
offsetX, offsetY Shift the center of the image on the map

Δείτε επίσης Επεξεργασία