Extension talk:Semantic Maps

About this board

Discussion page moved!
Use the new one on semantic-mediawiki.org instead!

Archive


Wikipro (talkcontribs)

for user exUSSR. Exampe extensions WikivoteMapsYandex OR fix it extensions

Kghbln (talkcontribs)
Yaron Koren (talkcontribs)

I'm curious: what is wrong with Google Maps and OpenLayers for areas in and around Russia?

Wikipro (talkcontribs)

Yandex maps is much more accurate for exUSSR and Turkey. Yandex maps functionality that Google maps + OSM (layer) analogue of Yandex with PQI

Yaron Koren (talkcontribs)

Okay, that's very good to know - thanks.

Add Semantic Maps Page for translate

5
Summary by Kghbln

Done

Перевод15 (talkcontribs)

please add Semantic Maps Page for translate

Kghbln (talkcontribs)

@User:Shirayuki and friends. I just updated the page so it is ready to be prepared for translation. Thanks and cheers

Shirayuki (talkcontribs)

YesY Done

Kghbln (talkcontribs)

Thanks for the effort! @Перевод15 You may now start translating the content. :)

Перевод15 (talkcontribs)

Russian - ОК

Summary by Kghbln
  • For Maps < 3.1 use $egGoogleJsApiKey = "yourkey";
  • For Maps 3.1 to 3.7 no setting is available.
  • For Maps > 3.7 use $egMapsGMaps3ApiKey = "yourkey";
185.5.60.134 (talkcontribs)

Hello,

how can I insert my google maps API key? I have Semantic Maps 3.0.4

Kghbln (talkcontribs)

Since Semantic Maps is depending on Maps the setting is done there. However you will have to upgrade to Maps 3.8 since this is the version that introduced the configuration setting for this.

185.5.60.134 (talkcontribs)

Thanks for the answer! Updating Maps must also update Semantic Maps or is not necessary?

Where can I find the instructions to do the upgrade? I looked for them, but I did not find ... Thanks again for the help

185.5.60.134 (talkcontribs)

One last question, sorry for the trouble. The file "Maps_settings.php" relative Maps 3.0.4 I found this:

// Google Loader JavaScript API key.

// Can be Obtained at: https://code.google.com/apis/loader/signup.html

// This key is needed When using Google Earth or When using extended

// Limits for displaying maps or geocoding calls.

$ GLOBALS ['egGoogleJsApiKey'] = '';

Entering here my API key can use it without being obliged to update?

Kghbln (talkcontribs)

Usually you would update both extensions. It is probably a matter of versions playing together or not.

About your discovery. I was not aware that Maps 3.0.4 still had this. I guess it is a matter of adding a key to your configuration and see if it works. If not ...

185.5.60.134 (talkcontribs)

Ok, I'll do a test! If I were to upgrade, my problem is that I have access to the shell but I can not use the composer... How can I update both extensions? I have to transfer all the wiki on my PC, install everything and then put it back online?

Kghbln (talkcontribs)

> How can I update both extensions?

Yes, that's the way to do it if you cannot even use "phar"-files. I just remember that Maps now requires PHP 5.5. That may be an issue too.

185.5.60.134 (talkcontribs)

Ok, thanks again for the help!

185.5.60.134 (talkcontribs)

For anyone interested: I did the test and confirm that using Maps 3.0.1 and inserting the API key in Map_settings file, everything seems to work properly

Kghbln (talkcontribs)

Thanks for reporting back. I believe it is preferable to have the setting $egGoogleJsApiKey = "yourkey"; in "LocalSettings.php" instead of "Map_settings.php" to make is upgrade safe. In your case it does not matter since with every upgrade you will loose this setting (removed in 3.1) anyway until 3.8 which reintroduced it as egMapsGMaps3ApiKey.

SM cannot display non-semantic points

4
67.170.217.247 (talkcontribs)

What I am trying to do is to have the ability for someone to type an address and display all the nearby destinations. It is possible to do this but there's no way to display a point for the address someone entered. At most I can set that address as the center of the map, but showing a point would make a difference.

With display_point in maps I can do one but I can't display a point of my choosing plus nearby destinations via ask query. 67.170.217.247 01:25, 3 October 2010 (UTC)

Jeroen De Dauw (talkcontribs)

The distance query currently does not support this. It is however a good idea, so I'll put it on to the to-do list.

Jeroen De Dauw (talkcontribs)

I have added a parameter that allows you to specify static points (like with the display_points parser function) in addition to query results in queries. It'll be in the next release, which will be 0.7.

Reply to "SM cannot display non-semantic points"

sm_coords doesn't exist

2
174.52.2.5 (talkcontribs)

I installed all the necessary components for Semantic Maps. However, now whenever any page gets edited, regardless of whether it's map related, i get the following error:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "SMW::deleteSemanticData". Database returned error "1146: Table 'outward_wiki.w1_sm_coords' doesn't exist (localhost)".

I can't find any .sql upgrade information. Anybody have an idea how to solve this?

Reply to "sm_coords doesn't exist"

[SM] Geographic Coordinates not working in spanish language

2
213.37.94.35 (talkcontribs)

Hi,

I've setup (several times) a new installation of mediawiki with Semantic Bundle extension in Spanish Language but I am unable to work with geographics coordinates.

With a clean installation I follow these steps:

1. Create a new property called 'TieneCoordenadas' based on Geographic coordinates type. 2. Create a new template 'TestPlace' with a new category 'TestPlaces' 3. Create a new form based on template TestPlace 4. Create a new page based on this form 5. Browse properies for this page shows: has improper value for 'TieneCoordenadas' property

How I fixed it:

- Change Language configuration in LocalSettings.php and to 'en' - Go to special pages, create a new property based on Geographic Coordinates - Create new templates and forms and use this new property - Voila! It works, but I still don't understand why wasn't working before in spanish. is it a bug?

I've worked with Mediawiki only for one week so I don't think I can help looking at source code.

Jeroen De Dauw (talkcontribs)

I'm not sure where the internationalization issue is occurring. If you use directional notation for coordinates (aka using N, E, S & W), you need to provide the localized versions of these letters. Since the last release (0.6.6), you can disable this by putting the below line in your LocalSettings.php file AFTER the inclusion of Maps.

$egMapsInternatDirectionLabels = false;

Let me know if this doesn't solve your problem.

Reply to "[SM] Geographic Coordinates not working in spanish language"
Tosfos (talkcontribs)

Using:

  • MediaWiki 1.16.0 (r70969)
  • PHP 5.2.9 (litespeed)
  • MySQL 5.0.91-community

With:

  • Semantic MediaWiki (Version 1.5.2) (r73354)
  • Semantic Forms (Version 2.0) (r73354)
  • Semantic Maps (Version 0.6.6) (r73354)
  • Maps (Version 0.6.6) (r73354)
  • Validator (Version 0.3.6 rc1) (r73354)

I recently upgraded all of the above extensions. Maps now display as a gray box with "Loading maps..."

See an example here: http://www.mikomos.com/wiki/Sandbox

Thanks!

Tosfos

Jeroen De Dauw (talkcontribs)

This is due to some JavaScript error, which seems to be coming from some other extension. try disabling your other extensions to confirm this.

Tosfos (talkcontribs)

Thanks Jeroen! It was a JavaScript error in my MediaWiki:Common.js.

Reply to "Maps not loading"

Known issues with SemanticMap 0.6 and SMW 1.5.0

2
130.20.105.142 (talkcontribs)

I am using SMW 1.5.0 and i want to use Map and SemanticMap extensions with it. Project page says that it support >SMW 1.5.1 Is there any known issues with SMW1.5.0 ?

Jeroen De Dauw (talkcontribs)

I recommend either upgrading SMW or using a version of SM < 0.6, such as 0.5.5. 0.6 or later might work with SMW 1.5, but problems are likely to occur.

Reply to "Known issues with SemanticMap 0.6 and SMW 1.5.0"
95.27.35.167 (talkcontribs)

Semantic Maps (0.6.5,0.6.6) works well on ordinal pages. But there is a problem, when I use it on pages with template.

Template (http://wiki.mephist.ru/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%9F%D0%BE%D0%B4%D1%80%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_%D0%9D%D0%98%D0%AF%D0%A3) contains:

{{
#display_point: {{{place|}}}
|controls=small
|width=260
|height=260
|zoom=16
}}
[[Coordinates:: {{#geocode:{{{place|}}}}}]]


After I have saved this template - page with it (http://wiki.mephist.ru/wiki/%D0%9D%D0%BE%D0%B2%D0%BE%D0%B2%D0%BE%D1%80%D0%BE%D0%BD%D0%B5%D0%B6%D1%81%D0%BA%D0%B8%D0%B9_%D0%BF%D0%BE%D0%BB%D0%B8%D1%82%D0%B5%D1%85%D0%BD%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9_%D0%BA%D0%BE%D0%BB%D0%BB%D0%B5%D0%B4%D0%B6) has only the grey rectangle.

But, after resaving of page - there is a map.

Resave of template = no map.

I looked at the sourсe code and there is a different: Good page contain additional:

<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAkjW9Z02Wr2DA2cO4Yz7i8xQs3rSWqIDJQozxN2O2ieoEaKtcKBTzQjsYDdYdEUB1FaBPQvU3CfRxAA&hl=ru" type="text/javascript"></script>
<script src="/extensions/Maps/Services/GoogleMaps/GoogleMapFunctions.js?207-0.6.5" type="text/javascript"></script>
<script type="text/javascript">window.unload = GUnload;</script>


It seems that this code should be added on template-recalculation function.

PS: Sorry for my English.

Jeroen De Dauw (talkcontribs)

Damn, that's to bad. Thanks for reporting the issue, I'll look into it.

Reply to "Problem with templates"
68.202.87.87 (talkcontribs)

Im adding: $egMapsOLAvailableLayers['worldwind'] = array('OpenLayers.Layer.WorldWind("esat", "http://localhost:8484/", 36, 4, {T:"bmng.topo.bathy.200406"})'); to my LocalSettings.php but, im not getting hits on my local worldwind WMS, using {{#display_map:84.0,-60.0 |service=openlayers |layers=worldwind }} in the wiki. Any Ideas? Ill start firebugging......

Jeroen De Dauw (talkcontribs)

Which version of Maps are you using? The obvious place to start debugging would be simply checking the page source, and see if the JavaScript is there correctly.

68.202.87.87 (talkcontribs)

Im using Maps v064 and JS looks OK?!

function() { initOpenLayer( 'open_layer_1', -60, 84, 13, [new OpenLayers.Layer.WorldWind("esat", "http://loclahost:8484/", {layers:"esat"})], ['layerswitcher','mouseposition','autopanzoom','scaleline','navigation'], [], 'en' );

Jeroen De Dauw (talkcontribs)

I'm not an OpenLayers guy, so can't really help you with this. I suggest you poke some OL people about it. If it turns out the extension is messing something up, let me know, then I'll fix.

174.46.115.2 (talkcontribs)

If I change the $egMapsOLAvailableLayers to use an OpenLayers.Layer.WMS constructor, I can get hits on my WMS. So ill poke around in the OL code. thanks

Reply to "Worldwind"