|
|
(11 versions intermédiaires par le même utilisateur non affichées) |
Ligne 1 : |
Ligne 1 : |
| ; syntax | | == syntax == |
| | <pre> |
| | |imageoverlays=<coord>:<coord>:<url-to-image>[~<title>~<text>/~link:<url-to-link>]; |
| | </pre> |
| | |
| | === example 1 - title / text / link === |
| | <pre> |
| | {{#display_map: |
| | |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~Semantic MediaWiki~World domination imminent!/~link:https://www.semantic-mediawiki.org/ |
| | |centre=Europe |
| | |zoom=5 |
| | |service=googlemaps3 |
| | }} |
| | </pre> |
| | |
| | ; result → better use [[#example_4_-_title_.2F_text_with_link|example 4]] if you would like to use a link |
| | {{#display_map: |
| | |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~Semantic MediaWiki~World domination imminent!/~link:https://www.semantic-mediawiki.org/ |
| | |centre=Europe |
| | |zoom=5 |
| | |service=googlemaps3 |
| | }} |
| | |
| | === example 2 - link === |
| | <pre> |
| | {{#display_map: |
| | |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~~/~link:https://www.semantic-mediawiki.org/ |
| | |centre=Europe |
| | |zoom=5 |
| | |service=googlemaps3 |
| | }} |
| | </pre> |
| | |
| | ; result |
| | {{#display_map: |
| | |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~~/~link:https://www.semantic-mediawiki.org/ |
| | |centre=Europe |
| | |zoom=5 |
| | |service=googlemaps3 |
| | }} |
| | |
| | === example 3 - title / text === |
| <pre> | | <pre> |
| {{#display_map: | | {{#display_map: |
| |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~Semantic MediaWiki~World domination imminent! | | |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~Semantic MediaWiki~World domination imminent! |
| |centre=Europe | | |centre=Europe |
| |zoom=4 | | |zoom=5 |
| |service=googlemaps3 | | |service=googlemaps3 |
| }} | | }} |
Ligne 13 : |
Ligne 54 : |
| |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~Semantic MediaWiki~World domination imminent! | | |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~Semantic MediaWiki~World domination imminent! |
| |centre=Europe | | |centre=Europe |
| |zoom=4 | | |zoom=5 |
| | |service=googlemaps3 |
| | }} |
| | |
| | === example 4 - title / text with link === |
| | <pre> |
| | {{#display_map: |
| | |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~Semantic MediaWiki~World domination imminent! [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki see here!] |
| | |centre=Europe |
| | |zoom=5 |
| | |service=googlemaps3 |
| | }} |
| | </pre> |
| | |
| | ; result |
| | {{#display_map: |
| | |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~Semantic MediaWiki~World domination imminent! [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki see here!] |
| | |centre=Europe |
| | |zoom=5 |
| |service=googlemaps3 | | |service=googlemaps3 |
| }} | | }} |
|
| |
|
| [[Category:Issues]] | | [[Category:Issue]] |
syntax
|imageoverlays=<coord>:<coord>:<url-to-image>[~<title>~<text>/~link:<url-to-link>];
example 1 - title / text / link
{{#display_map:
|imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~Semantic MediaWiki~World domination imminent!/~link:https://www.semantic-mediawiki.org/
|centre=Europe
|zoom=5
|service=googlemaps3
}}
- result → better use example 4 if you would like to use a link
Chargement de la carte...
{"type":"ROADMAP","minzoom":false,"maxzoom":false,"types":["ROADMAP","SATELLITE","HYBRID","TERRAIN"],"mappingservice":"googlemaps3","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":51,"lon":10,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"visitedicon":"","wmsoverlay":false,"zoom":5,"layers":[],"controls":["pan","zoom","type","scale","streetview","rotate"],"zoomstyle":"DEFAULT","typestyle":"DEFAULT","autoinfowindows":false,"resizable":false,"kmlrezoom":false,"poi":true,"cluster":false,"clustergridsize":60,"clustermaxzoom":20,"clusterzoomonclick":true,"clusteraveragecenter":true,"clusterminsize":2,"imageoverlays":[{"text":"\u003Cb\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ESemantic MediaWiki\n\u003C/p\u003E\u003C/div\u003E\u003C/b\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003EWorld domination imminent!/\n\u003C/p\u003E\u003C/div\u003E","title":"Semantic MediaWiki\n","link":"https://www.semantic-mediawiki.org/","strokeColor":"#FF0000","strokeOpacity":"1","strokeWeight":"2","fillColor":"#FF0000","fillOpacity":"0.5","ne":{"lon":10.70068359375,"lat":50.302674198227855},"sw":{"lon":8.382568359375,"lat":49.01553629578961},"image":"https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png"}],"kml":[],"gkml":[],"searchmarkers":"","fullscreen":false,"scrollwheelzoom":false,"locations":[]}
example 2 - link
{{#display_map:
|imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~~/~link:https://www.semantic-mediawiki.org/
|centre=Europe
|zoom=5
|service=googlemaps3
}}
- result
Chargement de la carte...
{"type":"ROADMAP","minzoom":false,"maxzoom":false,"types":["ROADMAP","SATELLITE","HYBRID","TERRAIN"],"mappingservice":"googlemaps3","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":51,"lon":10,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"visitedicon":"","wmsoverlay":false,"zoom":5,"layers":[],"controls":["pan","zoom","type","scale","streetview","rotate"],"zoomstyle":"DEFAULT","typestyle":"DEFAULT","autoinfowindows":false,"resizable":false,"kmlrezoom":false,"poi":true,"cluster":false,"clustergridsize":60,"clustermaxzoom":20,"clusterzoomonclick":true,"clusteraveragecenter":true,"clusterminsize":2,"imageoverlays":[{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003E/\n\u003C/p\u003E\u003C/div\u003E","title":"","link":"https://www.semantic-mediawiki.org/","strokeColor":"#FF0000","strokeOpacity":"1","strokeWeight":"2","fillColor":"#FF0000","fillOpacity":"0.5","ne":{"lon":10.70068359375,"lat":50.302674198227855},"sw":{"lon":8.382568359375,"lat":49.01553629578961},"image":"https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png"}],"kml":[],"gkml":[],"searchmarkers":"","fullscreen":false,"scrollwheelzoom":false,"locations":[]}
example 3 - title / text
{{#display_map:
|imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~Semantic MediaWiki~World domination imminent!
|centre=Europe
|zoom=5
|service=googlemaps3
}}
- result
Chargement de la carte...
{"type":"ROADMAP","minzoom":false,"maxzoom":false,"types":["ROADMAP","SATELLITE","HYBRID","TERRAIN"],"mappingservice":"googlemaps3","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":51,"lon":10,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"visitedicon":"","wmsoverlay":false,"zoom":5,"layers":[],"controls":["pan","zoom","type","scale","streetview","rotate"],"zoomstyle":"DEFAULT","typestyle":"DEFAULT","autoinfowindows":false,"resizable":false,"kmlrezoom":false,"poi":true,"cluster":false,"clustergridsize":60,"clustermaxzoom":20,"clusterzoomonclick":true,"clusteraveragecenter":true,"clusterminsize":2,"imageoverlays":[{"text":"\u003Cb\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ESemantic MediaWiki\n\u003C/p\u003E\u003C/div\u003E\u003C/b\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003EWorld domination imminent!\n\u003C/p\u003E\u003C/div\u003E","title":"Semantic MediaWiki\n","link":"","strokeColor":"#FF0000","strokeOpacity":"1","strokeWeight":"2","fillColor":"#FF0000","fillOpacity":"0.5","ne":{"lon":10.70068359375,"lat":50.302674198227855},"sw":{"lon":8.382568359375,"lat":49.01553629578961},"image":"https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png"}],"kml":[],"gkml":[],"searchmarkers":"","fullscreen":false,"scrollwheelzoom":false,"locations":[]}
example 4 - title / text with link
{{#display_map:
|imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png~Semantic MediaWiki~World domination imminent! [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki see here!]
|centre=Europe
|zoom=5
|service=googlemaps3
}}
- result
Chargement de la carte...
{"type":"ROADMAP","minzoom":false,"maxzoom":false,"types":["ROADMAP","SATELLITE","HYBRID","TERRAIN"],"mappingservice":"googlemaps3","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":51,"lon":10,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"visitedicon":"","wmsoverlay":false,"zoom":5,"layers":[],"controls":["pan","zoom","type","scale","streetview","rotate"],"zoomstyle":"DEFAULT","typestyle":"DEFAULT","autoinfowindows":false,"resizable":false,"kmlrezoom":false,"poi":true,"cluster":false,"clustergridsize":60,"clustermaxzoom":20,"clusterzoomonclick":true,"clusteraveragecenter":true,"clusterminsize":2,"imageoverlays":[{"text":"\u003Cb\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ESemantic MediaWiki\n\u003C/p\u003E\u003C/div\u003E\u003C/b\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003EWorld domination imminent! \u003Ca rel=\"nofollow\" class=\"external text\" href=\"https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki\"\u003Esee here!\u003C/a\u003E\n\u003C/p\u003E\u003C/div\u003E","title":"Semantic MediaWiki\n","link":"","strokeColor":"#FF0000","strokeOpacity":"1","strokeWeight":"2","fillColor":"#FF0000","fillOpacity":"0.5","ne":{"lon":10.70068359375,"lat":50.302674198227855},"sw":{"lon":8.382568359375,"lat":49.01553629578961},"image":"https://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png"}],"kml":[],"gkml":[],"searchmarkers":"","fullscreen":false,"scrollwheelzoom":false,"locations":[]}