6 Oct 2020 |
Jeroen De Dauw | * Not seen that before. kghbln have you? | 23:01:01 |
Mark Hershberger | I got it. will update in a bit | 23:01:31 |
7 Oct 2020 |
Bernhard Krabina | 👍 | 05:50:40 |
Iván Hernández Cazorla | Hi everyone. | 20:19:42 |
Iván Hernández Cazorla | I am reading about Maps because I need to integrate it with Semantic MediaWiki. | 20:20:08 |
Iván Hernández Cazorla | I read in its wiki that it allows to export to KML: https://maps.extension.wiki/wiki/KML_export | 20:20:36 |
Iván Hernández Cazorla | But, could it be possible to import a KML in a OpenStreetMap layer as it was done by the Google Maps extension? https://www.mediawiki.org/w/index.php?oldid=509695#KML_import | 20:21:42 |
Iván Hernández Cazorla | In reply to Iván Hernández Cazorla I read in its wiki that it allows to export to KML: https://maps.extension.wiki/wiki/KML_export Now it seems that maps.extension.wiki is down :/ | 20:22:34 |
Iván Hernández Cazorla | Ups, I think I just found something useful: https://www.semantic-mediawiki.org/wiki/Extension:Maps/mapping_service | 20:24:16 |
Iván Hernández Cazorla | However I understand that kml parameter only works for Google Maps. | 20:25:41 |
Iván Hernández Cazorla | So a possible workaround may be to convert the KML to GeoJSON and then use geojson parameter. | 20:28:31 |
Jeroen | In reply to Iván Hernández Cazorla Now it seems that maps.extension.wiki is down :/ Wow nice timing! I was just upgrading the thing. Was only down for a minute or two | 20:47:45 |
Iván Hernández Cazorla | In reply to Jeroen Wow nice timing! I was just upgrading the thing. Was only down for a minute or two Nice! 😻 | 20:48:03 |
Jeroen | Do you want to display data stored in SMW on a map via a query? If so, you can do that directly with format=map. No need to use something like KML | 20:48:50 |
Iván Hernández Cazorla | In reply to Jeroen Do you want to display data stored in SMW on a map via a query? If so, you can do that directly with format=map. No need to use something like KML Yes, that would be really nice. However, the client I am working with has several KML files for areas. | 20:49:51 |
Jeroen | So you have a query that returns a list of KML files? | 20:51:54 |
Jeroen | There currently indeed is no KML support for Leaflet. Pull request welcome. Could also implement this myself if there is some funding, in which case, PM me. | 20:53:32 |
Iván Hernández Cazorla | No, I have several pages that uses <googlemaps> tag from the Google Maps extension. This tag contain URL to KML files to show the areas. | 20:54:35 |
Iván Hernández Cazorla | At this moment there is nothing in SMW. | 20:54:41 |
Iván Hernández Cazorla | I am just preparing the model and examples to show them. | 20:55:00 |
Iván Hernández Cazorla | Because I am going to update their MediaWiki wiki, but I am convincing them to use SMW due the possible advantages for their project. | 20:55:44 |
Iván Hernández Cazorla | In reply to Jeroen There currently indeed is no KML support for Leaflet. Pull request welcome. Could also implement this myself if there is some funding, in which case, PM me. Interesting! I keep it in mind! | 20:56:00 |
Jeroen | That sounds like a good pragmatic approach. (Assuming you do not have 9 million files to convert) | 21:23:20 |
Iván Hernández Cazorla | In reply to Jeroen That sounds like a good pragmatic approach. (Assuming you do not have 9 million files to convert) 9 million files! It would be crazy, unless the conversion would be automatized. | 21:25:35 |
hexmode | Is there a way, out of the box, to sort smw results by page title? | 22:36:41 |
hexmode | https://www.semantic-mediawiki.org/wiki/Help:Sorting says that if sort= is blank then the value of the first column is used, but that doesn't seem to be true | 22:46:10 |
hexmode | I'm expecting a caseless search that uses the whole page name, but it seems to put lowercase at the end and sort by sub page name rather than the full name | 23:17:42 |
hexmode | hmmm might have to add a property to sesp | 23:20:27 |
8 Oct 2020 |
| Shalika joined the room. | 07:04:01 |
Iván Hernández Cazorla | In reply to @hexmode:matrix.org https://www.semantic-mediawiki.org/wiki/Help:Sorting says that if sort= is blank then the value of the first column is used, but that doesn't seem to be true I tried a test in a page and blank sort works as expected, sorting by the page title. | 11:40:46 |