#Maps extension issue

112 messages · Page 1 of 1 (latest)

knotty swallow
#

I'm trying to build interactives maps, with Maps and Semantic Mediawiki but so far i have one issue i don't find any clue to resolve it.
When i create a property:coordinates and assign it the type "_geo", i have an error message saying that semantic can't find the Maps extension.
(you can see the error here : https://eana.miraheze.org/wiki/Spécial:Types/Coordonnées_géographiques)

The error prevents me to add coordinates to my pages, and to have leaflet queries. (sandbox here : https://eana.miraheze.org/wiki/Utilisateur:Lucastucious)

ruby cosmos
#

I use Maps without SMW
So I can't really help you on that part
But it says:
The "Maps" extension was not detected, so "Geographic Coordinates" is restricted in its ability to function.

knotty swallow
#

yes, but Maps is enabled...

ruby cosmos
knotty swallow
#

should i add a comment on the issue then ?

ruby cosmos
#

Yeah, that is what I wanted to do, but you doing it is better

#

You'll be subscribed as well

knotty swallow
#

the thing is. The Maps extension work. And is listed

ruby cosmos
#

It does work?

#

huh?

ruby cosmos
#

moment

#

ehm..

#

now that's weird

knotty swallow
#

indeed

#

i tried disabling and re-enabling the Maps extension

#

Maps was activated BEFORE semantic btw

#

maybe a cache or someting need to be cleared

ruby cosmos
#

So it's SMW

#

?

knotty swallow
#

It seems like SMW does not see Maps

ruby cosmos
#

When did you get the issues?

knotty swallow
ruby cosmos
#

What do you want to use SMW for precisely?

#

Because I never used it

knotty swallow
#

SMW is used a lot in the wiki, especially for generating table. But for the maps issue, as precised in the Maps documentation, you can queries map location based on geographic coordinates. And that's what i try to do.

The query, if it's relevant :

{{#ask:[[Catégorie:Lieux]]
 | format=leaflet
 | ?Coordinates
 | ?Located_in
 | template=map-location
}}
#

but since coordinates, as geographic property, doesnt work... the query don't work either

ruby cosmos
#

This ask which items are within that category right?

#

I am not really familiar with that side of the extension.
But then it is SMW that is not managed

#

<@&407534159909748746> Sorry for pinging.
See #1215789068911120485 bug.
I think that Manage Wiki bug doesn't activate SMW for this user on [[mh:eana]]

mossy ploverBOT
knotty swallow
ruby cosmos
#

I'm thinking to fast perhaps

#

So both Maps and SMW work, but not together, is that what you mean?

knotty swallow
#
  • SMW work
  • Maps work
  • But SMW need Maps to have a "geo property. And it seems that it does not detect it
ruby cosmos
#

Do you have GeoData extension?
Adds geographical coordinates storage and retrieval functionality

#

No, I don't see it

knotty swallow
#

i've tried to enable it, but it does not work

ruby cosmos
#

Can you do it again, so I can see if it pops up?

#

Should normaly be instantly enabled

knotty swallow
ruby cosmos
#

Okay, I see it

#

Can you try to do the query and show me where you have done it?

gaunt pulsar
ruby cosmos
#

It seems that the SMW does work, but the GeoData doesn't

ruby cosmos
#

The coordinates aren't pulled

#

So somewhere the communication between SMW and Maps by using GeoData doesn't work

#

Hmm. It seems it does?
Correct?

knotty swallow
ruby cosmos
#

For reference:

#

The error is produced by this code:
{{#set:coordinates={{#coordinates:46.126459, 48.022949|format=float|directional=no}}}}

knotty swallow
#

even [[coordinates::46.126459, 48.022949]] is flagged as error

ruby cosmos
#

Try: {{#coordinates: 46.126459, 48.022949|format=dms}}

#

[[coordinates::46.126459, 48.022949]] doesn't work for me either btw

ruby cosmos
#

No, I don't so that explains that then 😄

#

I never used SMW

#

I only use Maps

knotty swallow
ruby cosmos
#

ah ok

knotty swallow
ruby cosmos
#

Hmm. That's weird, as Maps can use this alone

knotty swallow
#

it display the coordinates, if that's what your asking

#

but i cannot set a property

ruby cosmos
#

ah okay

#

Thought it was giving an error message as well

#

hmm

knotty swallow
#

guess we'll have to wait the cache cleaning

ruby cosmos
#

indeed

#

By the way

#

tip:

knotty swallow
ruby cosmos
#

I saw you test an external link

#

With Wikipedia:

#

[[w:fr:France]] links to France on French Wikipedia
`[[w:fr:France]]

mossy ploverBOT
ruby cosmos
#

That works in the Bobble text on Maps

knotty swallow
ruby cosmos
#

test [https://en.wikipedia.org/wiki/Germany Germany]
equals
[[w:Germany]]
It's a direct link to Wikipedia.

mossy ploverBOT
ruby cosmos
#

em... Weird

knotty swallow
#

did you use geojson ?

ruby cosmos
#

jmikola/geojson indeed

knotty swallow
#

i'm curious to see it

knotty swallow
#

yeah so no geojson file.

ruby cosmos
#

No, but isn't that called through Maps?

#

I am not that technical

#

I only know what it does

#

on my wiki

knotty swallow
#

yep

#

thank you for trying !

ruby cosmos
#

You're welcome

#

We don't have many that use SMW

knotty swallow
#

@gaunt pulsar an issue is open on the Maps github

ruby cosmos
#

I have reopened it for you, and subscribed you to it as well

#

You can add a comment if you like

knotty swallow
#

i found something

#

it seems that it exist a settings on Maps to specifically allo SMW or not :
'egMapsDisableSmwIntegration' => false,

ruby cosmos
#

I saw that on Github indeed

knotty swallow
#

but we dont have access to theses Maps settings

knotty swallow
ruby cosmos
#

Not yet unfortunately

#

I have put the question forward