Category talk:Maps examples

From semantic-mediawiki.org

Contents

Thread titleRepliesLast modified
Weird extra coordinates....014:29, 18 October 2016
Change to specific location 119:48, 9 February 2013

Weird extra coordinates....

Hi,

I use the #display_map: method to get a map with a lot of lines.

I created the template used in the semantic query myself, to get the

coordinate1:coordinate2~ ~Text~Color;

It works fine for the 2nd result until the last, but the first result always is screwd-up. In the HTML-Source of the page I can see, that google gets three coordinates, resulting in an additional line.

[...]"pos":[{"lat":26.7380228,"lon":-11.684637},{"lat":42.0972345,"lon":-111.997471},{"lat":40.782777777778,"lon":-73.967222222222}]}[...]

The coordinates used should be 40.7828687,-73.9675438 and 38.8566241,-77.0270329. The first obviously appear correct, but the latter somehow turn into something unexpected.

Any help ?

Here is the call:

{{#display_map:
|lines={{#ask:[[Endpunkt 1::+]]
|?Endpunkt 1=Endpunkt1
|?Endpunkt 2=Endpunkt2
|?Bekanntheit
|?Hinweise
|?Caern 1
|?Caern 2
|sort=Endpunkt 1,Endpunkt 2
|format=template
|link=none
|headers=hide
|mainlabel=-
|sep=;
|template=Mondbrücken-Kartenausgabe
}};
|centre=46.5,-34.5
|maxzoom=14 
|minzoom=2
|zoom=3
|geoservice=geonames
|width=auto
|height=750px
|type=earth
|types=hybrid,earth,physical,satellite
}}

Best Regards,

14:29, 18 October 2016

Change to specific location

I am using a call to a map like: {{#display_map:{{SUBJECTPAGENAME}}|zoom=10}} for my location type pages, however this produces a result from a search on maps.google.com. Ideally I would like the results that would be shown on maps.google.co.uk as most of my locations are in the UK, is it possible to change the behaviour so that this happens?

17:21, 6 February 2013

Not currently. You could place a feature request for the Maps extension on bugzilla, though do nto expect this to be added soon unless some dev is interested in doing so.

19:48, 9 February 2013