Extension talk:Maps/Flow archive/2018
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Archive
[edit]
Some points missing on map.
[edit]Hi, I am using maps extension and semantic mediawiki to display some points. With ask query I found there is 102 pages which have coordinates and meets my query conditions.
I displayed the points on a maps and found some of point is missing. It seems only 78 points. (Map 1)
Adding another condition to reduce the result count less than 50 made proper display. (Map 2)
I updated pages which was not displayed at map1 several times. But not worked.
FYI my private wiki have mediawiki 1.30.0 Semantic mediawiki 2.5.0
If anyone have idea to solve this, let me know.
Thanks in advance. Naramoksu (talk) 14:58, 7 January 2018 (UTC)
- Check if you are getting the same result set with the table format for the respective query conditions. If yes, you need to adapt your query somehow. If no, there is perhaps something in the water. [[kgh]] (talk) 16:26, 7 January 2018 (UTC)
- I found a missing point on map. And queried with count format and found there is more missing point. The results of table format query and map format is not same.
- I checked missing pages have some wrong information but not find wrong data. It have correct data but not display on map.
- Thanks for your comments. Naramoksu (talk) 14:20, 8 January 2018 (UTC)
- Thanks for reporting back. Do these points have identical cooordinates? Are these coordinates properly set on the respective pages? Is this wiki publicly accessible? [[kgh]] (talk) 14:31, 8 January 2018 (UTC)
- Hi, I just found your comments.
- Yes, Each point assigned to a page which describes a building and all the point is different. I inserted coordinate with same template and checked duplication of coordinate several times. Maybe some of them is very close but no duplication.
- I'm quessing querying have some kind of limitation because total map have a missing point but these point apeared on a query which less result by more conditions.
- Sorry, it's private wiki. Naramoksu (talk) 04:03, 11 January 2018 (UTC)
- Try to set
|limit=500to the query conditions though this should probably make no difference since it is working for the table format. Moreover sometimes sorting conditions have a large impact on the results returned, i.e. if you are sorting by a property which is not set an a certain page then this page will not be considered a valid result (Closed-world assumption). [[kgh]] (talk) 09:17, 11 January 2018 (UTC)- FYI, here is my query.
- Naramoksu (talk) 10:26, 11 January 2018 (UTC)
{{#ask:[[Category:FAB]][[Company name::+]][[Wafer size::+]]| format =count}}EA <!-- query to cound --> <!- below is query to display map --> {{#compound_query:[[Category:FAB]][[Company name::+]][[Wafer size::12]];?Has coordinates;?Company name=Company;?Wafer size;?FAB product = Product; | [[Category:FAB]][[Company name::+]][[Wafer size::18]];?Has coordinates;?Company name=Company;?Wafer size;?FAB product = Product; | [[Category:FAB]][[Company name::+]][[Wafer size::8]];?Has coordinates;?Company name=Company;?Wafer size;?FAB product = Product;icon=Blue_marker.png; | [[Category:FAB]][[Company name::+]][[Wafer size::<<8]];?Has coordinates;?Company name=Company;?Wafer size;?FAB product = Product;icon=Green_marker.png; | format =map | enablefullscreen =yes | markercluster =yes | height =400 | limmit = 500 }} - I find a solution. I read Extension:Semantic Compound Queries and found "One important exception to this rule is the
limit=parameter, which sets the maximum number of results displayed: it must be used per sub-query, not for the overall compound query." - After insert limit to sub-query it worked.
{{#compound_query:[[Category:FAB]][[Company name::+]][[Wafer size::12]];?Has coordinates;?Company name=Company;?Wafer size;?FAB product = Product;limit=100; | [[Category:FAB]][[Company name::+]][[Wafer size::18]];?Has coordinates;?Company name=Company;?Wafer size;?FAB product = Product;limit=100; | [[Category:FAB]][[Company name::+]][[Wafer size::8]];?Has coordinates;?Company name=Company;?Wafer size;?FAB product = Product;icon=Blue_marker.png;limit=100; | [[Category:FAB]][[Company name::+]][[Wafer size::<<8]];?Has coordinates;?Company name=Company;?Wafer size;?FAB product = Product;icon=Green_marker.png;limit=100; | format =map | enablefullscreen =yes | markercluster =yes | height =400 | limmit = 500 }}- Thanks for your suggestion about limit. Naramoksu (talk) 11:28, 11 January 2018 (UTC)
- Note that you still have the limit parameter for the total compound query and note the typo limmit as opposed to limit. [[kgh]] (talk) 15:52, 11 January 2018 (UTC)
Is it possible to use it with Google Mars?
[edit]https://www.google.com/mars/?authuser=1
It's for my astrobiology wiki http://encyclopediaofastrobiology.org
Would be nice to be able to show Google Maps for locations on Mars of features and landers / rovers.
Have it working with one of my other wikis for Earth for supervolcanoes with service="googlemaps3" was wondering if you can get Mars by specifying another service or something?? https://doomsdaydebunked.miraheze.org/wiki/Why_we%27d_have_centuries_of_warning_of_a_supervolcano_eruption_-_with_zoomable_map_of_top_seven_supervolcanoes#Where_can_we_expect_the_next_supervolcano.3F
Thanks, very useful extension!
Robertinventor (talk) 11:27, 25 September 2018 (UTC)
- I cannot answer for the Maps extension, but WikiMiniMaps has a Mars layer (not provided by Google): https://wma.wmflabs.org/iframe_dev.html?wma=18.65_226.2_700_400_en_8_en&globe=Mars&lang=en&page=Olympus_Mons Arlo Barnes (talk) 13:38, 26 September 2018 (UTC)
- Oh that's helpful, thanks. For instance {{coord|4.5895|S|137.4417|E|globe:Mars}} takes you to the Curiosity landing site. It was in my wiki all along, I just hadn't noticed it, it's there in some of the pages imported from Wikipedia, e.g. uriosity (rover)#Landing siteI can now use the same approach in other pages that don't have these coordinates embedded.
- It's not quite as flexible as the maps, can't embed it with multiple markers, I'd really like to do something like this as an embeddable zoomable map:
- Template:Features and artificial objects on Mars
- It would be nice to be able to do it like my Map of top seven supervolcanoes.
- So question is still open if anyone else knows how to do that, but it's great to know about WikiMiniAtlas, thanks! Robertinventor (talk) 19:40, 26 September 2018 (UTC)
distance from current location
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I am looking at using this Maps extension to display businesses in the vicinity of the user.
With the maps extension can you search for businesses that are near you and detail how far they are away? Squeak24 (talk) 21:17, 5 October 2018 (UTC)
- I should have gone to the bottom part of the page. I will have to have a play over the weekend
- Extension:Whats Nearby Squeak24 (talk) 21:39, 5 October 2018 (UTC)
How to integrate a legend to the map?
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
Do you know if it's possible to integrate a legend to the map? Like the one of Google Maps : https://developers.google.com/maps/documentation/javascript/adding-a-legend
Thanks a lot :)
Christophe Justadust (talk) 08:36, 18 October 2018 (UTC)
- This is not currently supported. You can request this feature at https://github.com/JeroenDeDauw/Maps/issues Jeroen De Dauw (talk) 01:30, 25 October 2019 (UTC)
Few Questions: Full Screen Button, Close tooltips upon another opening, moving the 'Filter Markers' input.
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello all,
I'm hoping to get some help here as I'm failing. Any help I can get is appreciated.
I'm using Semantic Maps with the Google API on my Foreground skin.
- I want to add a 'Full Screen' button in the corner like a lot of maps have. Any clues on how to add that? Someone posted a thread below saying they had done it but offered no instructions.
- When you select a pin it opens the information tooltip. However when you select another, the previous ones remain open. I'm creating a densely populated map which gets messy really fast when opening multiple locations. Is there any way to have only one tooltip open at a time?
- On mobile the 'Filter Markers' input box is hidden behind the 'Map/Satellite' toggle buttons. I've had a heck of a time trying to move the Filter Markers input to no avail.
I'm pullin my hair out here! Thank you in advance! 157.131.135.60 (talk) 19:28, 26 November 2018 (UTC)
- If you use Leaflet (the default service in recent versions of Maps) then you can set fullscreen=on. Jeroen De Dauw (talk) 01:30, 25 October 2019 (UTC)