سانچہ:Graph:Street map with marks/دستاویز
یہ سانچہ:Graph:Street map with marks کی دستاویز کا ذیلی صفحہ ہے۔ (سانچہ کی تفصیلات کے لیے اس کا اپنا صفحہ دیکھیں) اس میں استعمال کا طریقۂ کار ، زمرہ جات، بین الویکی روابط اور دیگر مواد شامل ہے جو کہ خود سانچہ صفحہ کا حصہ نہیں۔ |
الرمز | النتيجة |
---|---|
خريطة بسيطة مع علامة واحدة، وحجم مخصص، وليست مصغرة{{Graph:Street_map_with_marks| width=400| height=170| lat=15.34| lon=44.2| zoom=7 | minimap=false |
{ "lat": 15.34, "lon": 44.2}
}}
|
|
{{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 }
}}
|
|
علامتين مع تسميات - واحدة بشكل الماس، والأخرى تستخدم صورة من كومنز يمكن تخصيص التسميات مع كل معلمات علامة النص فيغا عن طريق تعيين "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"}
}}
|
|
بيانات من مجموعة بيانات كومنز كما أعلاه، ولكن هذه المرة تكون البيانات مخزنة في كومنز في جدول مثل 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}}
|
See or edit source data. |
عرض جميع المواقع التراثية الأرمنية، عبر استعلام في ويكي بيانات يجب أن يكون نتيجة الاستعلام نفس الأعمدة (الحقول) كما في الأمثلة الأخرى (text, img, ...)، باستثناء الإحداثيات ينبغي أن تكون في صف باسم coord {{Graph:Street_map_with_marks| lat=40.347 | lon=47.260 | zoom=6 | colorScaleField=type | wdqs=
# Each location should show only once. This query may output all the same values as in the other examples, such as "text", "img", and others.
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
}}
|
See Wikidata query. |
{{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 |
بيانات القالب ترمیم
معلومات سانچہ Graph:Street map with marks
Shows an image of a map, and draws user-specified images/icons on top of it using latitude/longitude coordinates.
پیرامیٹر | وضاحت | طرز | حالت | |
---|---|---|---|---|
data | 1 | Comma separated list of JSON objects that describing what data to draw on the map | اِسٹرنگ | تجویز کردہ |
width | width | Total width of the graph | عدد | اختیاری |
height | height | Total height of the graph
| عدد | اختیاری |
padding | padding | کوئی وضاحت نہیں | عدد | اختیاری |
lat | lat | Latitude of the map's center | عدد | اختیاری |
lon | lon | Longitude of the map's center | عدد | اختیاری |
zoom | zoom | Map zoom level (0..18) | عدد | اختیاری |
wdqs | wdqs | An optional Wikidata query to use instead of the data - the query would generate a list of items just like data, but it must contain a "coord" field with the location | اِسٹرنگ | اختیاری |
colorScaleField | colorScaleField | If given, this data field will be used to make dots of different color, one color per unique value of this field | اِسٹرنگ | اختیاری |
minimap | minimap | If set, 0 or false will always hide the map, and 1 or true will always show it. Make sure the map is big enough include the minimap. By default, the map will be shown for zoom levels 5+ if the map is sufficiently large | بولین | اختیاری |