Help talk:Google Maps format

From semantic-mediawiki.org
Jump to: navigation, search

Any difference between the format names googlemaps and googlemaps3 ?

There are two names for the format, i.e., googlemaps and googlemaps3 on this page. Is there any difference between the format names googlemaps and googlemaps3 ? --Linforest 16:52, 16 March 2012 (CET)

This is a confusing one for me too, every time I have a look at it. When using it as a result format you should always use "googlemaps" and it will refer to the current version of Google Maps, which is version 3 at the moment. thus you do not have to change your queries every time Google Maps introduces some more magic. Then it comes to #docinfo we have to use "googlemaps3" for some reason I forgot in the meantime to get it working. It is a bit tricky but just the way it is, I guess. Cheers --[[kgh]] 16:59, 16 March 2012 (CET) PS Do not quote me if my explanation is wrong.
Heiya, kgh. Thanks for your reply. Ok, I got it. Cheers --Linforest 17:07, 16 March 2012 (CET)

Contents

Thread titleRepliesLast modified
Values for Layers?010:15, 6 August 2013
Icon selection, by property queried112:18, 3 December 2012
Template support213:09, 26 October 2012

Values for Layers?

Which values are allowed for the property "layers"? All Layers listed at google's developer page? Thank you for information and help.

M-art-in (talk)10:15, 6 August 2013

Icon selection, by property queried

I have User:* pages that contain the following content. In short, the user page has property values that contain the user's last recorded position, the position of the user's home, and the user's work (if specified). At the bottom of the page, there is a compound query that maps the relevant locations in Google Maps. I would like to have different markers for each type of geographic location (ie. each property queried). However, I cannot find a way to associate an icon to each property selected for display (I have placed a comma between the icon filenames as pseudo-code for this attempt). Is there a means to define this association in the query (ie. without having to place each coordinate on separate wiki pages)?

== User locations ==
{{#set:Has coordinates=0°0.2401'N, 0°0.0066'W
      |Has coordinates (home)=0°0.2401'N, 20°0.0066'W
      |Has coordinates (work)=20°0.2401'N, 0°0.0066'W
}}
== User location map ==
{{
#compound_query: 
  [[{{FULLPAGENAME}}]][[Has coordinates::+]];?Has coordinates (home);?Has coordinates (work);icon=Blue Google marker.png,Green Google marker.png
| format=map
}}

Thanks!

Wmiller (talk)18:42, 16 November 2012

Ok, you are not understating how Semantic Compound Queries work. What you're trying to do is quite understandable, as it would make more sense then the approach you'll have to take, since what you're trying now is sadly enough not possible.

You cannot switch on a property, you have to switch on queries. You thus need two queries, each with a different property. See Semantic Maps examples/Compound queries for an example.

I'd love to see switching on properties in SCQ :)

Jeroen De Dauw (talk)12:18, 3 December 2012
 

Template support

The template option is buggy in Maps/Semantic Maps 1.0.5 (apparently you can't have more than value per property). Has this been fixed in the newer versions?

Cavila (talk)15:16, 25 October 2012

Don't think this has been fixed. Would be neat if you could create an example of this failing, for instance on a subpage of your user page, and link it from a new bug in http://bugzilla.wikimedia.org/ :)

Jeroen De Dauw (talk)16:23, 25 October 2012

Okay, an example and a bug report have been created:

Sandbox
Bugzilla

bug 41421

Only a few minutes after I posted this though the label doesn't appear at all.

Cavila (talk)13:08, 26 October 2012