Talk:Maps

From Mapping on MediaWiki
Jump to: navigation, search
Crystal Clear app error.png

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

Contents

Thread titleRepliesLast modified
Google Maps v3 issues107:55, March 10, 2011
$wgSscriptPath114:28, February 9, 2011
default width215:09, January 31, 2011
Point to address in map117:06, January 21, 2011
alignment of maps on page120:52, January 1, 2011
Maps Pop-Up Resize Issue219:09, December 15, 2010
New error/warning: array_merge() Argument #1 is not an array in...318:22, December 15, 2010
Place for Keys208:41, December 9, 2010
Fatal error: Unsupported operand types in ...1420:29, November 29, 2010
Trimming issue in 0.7 beta 3120:32, November 9, 2010
Undefined method116:03, October 23, 2010
Problem with setting a geocode attribut218:00, October 14, 2010
center issue with sementic maps115:45, October 12, 2010
Geocode nesting115:52, October 12, 2010
First page
First page
Next page
Next page
Last page
Last page

Google Maps v3 issues

Just wondering if anyone else if having problems when trying to set the default webservice to googlemaps3

142.103.101.7723:35, March 9, 2011

$wgSscriptPath

It seems that you need to put the require_once command in LocalSettings AFTER setting $wgScriptPath (Mediawiki 1.15) due to setting of $egMapsScriptPath in Maps.php.

Ianb146914:28, February 3, 2011

Yeah; in general, you should put extensions at the bottom of your LocalSettings file. If some documentation states otherwise, please correct it or point me to where it is.

Jeroen De Dauw14:28, February 9, 2011
 

default width

Box

The default width is width:100%. This width is problematic width floating objects:

div container with width:100%


Box

The default width should be width:auto like the CSS default.

div container with width:auto
141.113.85.9516:14, January 26, 2011

Awesome; thanks for pointing this out. I'll fix this for the next release.

Jeroen De Dauw21:01, January 26, 2011

It's fixed on trunk now.

Jeroen De Dauw15:09, January 31, 2011
 
 

Point to address in map

Hi!

I want to show the following address in my wiki: 90 Jalan Batu Belig, Kerobokan Kelod, Kuta, Bali, Indonesia

This address exist - see here: http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=90+Jalan+Batu+Belig,+Kerobokan+Kelod,+Kuta,+Bali,+Indonesia&aq=0&sll=37.0625,-95.677068&sspn=31.509065,86.044922&ie=UTF8&hq=&hnear=Jalan+Batu+Belig,+Kerobokan+Kelod,+Kuta,+Badung,+Bali,+Indonesia&ll=-8.671906,115.15367&spn=0.019091,0.041757&z=15

But my wiki map doesn't want to accept this address! What am I doing wrong?

Feel free try your luck: http://www.auslandssemester-bali.de/index.php?title=Map-Test



Thanks for your help! Chris

220.255.2.2511:21, January 21, 2011

Apparently the Google Geocoding service is not able to convert your address to a set of coordinates. I suggest you try to rephrase it to something it does recognize, or simply use an online geocoding service to convert the address to a set of coordinates, and use these directly.

Jeroen De Dauw17:06, January 21, 2011
 

alignment of maps on page

Hi there,

I would like to put a map next to a infobox in my mediawiki (on the right hand side). Can anyone tell me how to do that? Please have a look here: http://www.auslandssemester-bali.de/index.php?title=Map-Test

It would be perfect if I could use a floating map with hight of 600px. I couldn't figure out yet how to do that.


(I'm using maps 0.7.3)

202.156.14.10612:40, January 1, 2011

This is possible. See here for an example.

Jeroen De Dauw20:52, January 1, 2011
 

Maps Pop-Up Resize Issue

Hello again J,

My pop-up boxes, which contain a list of properties and their values, are not resizing correctly. If less than 8 lines of text are present, the text will extend beyond the bottom of the box. If 9+ lines are present, the box will resize correctly. I am not using a template. The issue has been viewed on both IE and Opera browsers. Is there a fix for this?

I'm running: MW 1.15.1 ; SMW 1.5.1.1 ; Maps/Semantic Maps 0.6.5 ; Validator 0.3.5

Darryl

149.32.192.3419:28, December 8, 2010

Someone else reported this and I fixed it at some point, which IIRC, was after 0.6.5. So upgrading to the latest release should fix the issue. Let me know if it does not :)

Jeroen De Dauw06:03, December 9, 2010

I upgraded to 0.7.3 and the problem is still present, although it did add a scroll bar.

My problem is identical to this one.

149.32.192.3419:09, December 15, 2010
 
 

New error/warning: array_merge() Argument #1 is not an array in...

This error just popped up on my site. I haven't made any changes to my mediawiki setup in about a month (haven't added any new extensions either).

Looks like this: Warning: array_merge() function.array-merge] Argument #1 is not an array in /home/abc/xyz/extensions/Maps/Maps.php on line 180

Any ideas? Thanks in advance!!

Kburns16:58, December 14, 2010

As it turns out line 180 is where I had edited Maps.php as per my previous question about the "Fatal error: Unsupported operand types in..."

You can see there here: http://mapping.referata.com/wiki/Thread:Talk:Maps/Fatal_error:_Unsupported_operand_types_in_/home/me/public_html/extensions/Maps/Maps.php_on_line_174

Line 180 is the final line here:


      $wgExtraNamespaces = array_merge( $wgExtraNamespaces, array(
              	Maps_NS_LAYER => 'Layer',
              	Maps_NS_LAYER_TALK => 'Layer talk'
      ) );

Does this help any?

Kburns05:00, December 15, 2010

Some more updates...

I realized that someone brought this problem up below, but I had not seen it after implementing the little code hack. I upgraded from 0.7.2 to 0.7.3 and still see it appearing.

Kburns05:14, December 15, 2010

The issue has been fixed a while back on svn trunk. Working code can be found here.

Jeroen De Dauw18:22, December 15, 2010
 
 
 

Place for Keys

Installed Maps as described and set Google and yahoo Key in LocalSettings.php. No Effect.

Then i found the /extension/Maps/Maps_Settings.php. Am I wrong or is this the only Place to place the google and yahoo keys?

Agaida19:57, December 8, 2010

You should not modify any code in the extensions/Maps folder, as it'll get lost next time you update the code. LocalSettings is the correct place. Note that you have to place the setting (such as $egMapsGoogleMapsKey ='something';) AFTER the inclusion of the extension. If you place it before, it'll get overridden by what's in Maps_Settings.php.

Jeroen De Dauw06:05, December 9, 2010

Thanks. LocalSettings is the right place. But you have to paste the right key too - my fault. ;)

Agaida08:41, December 9, 2010
 
 

Fatal error: Unsupported operand types in ...

Hi there -

I am a bit new to MediaWiki, but I have successfully installed a bunch of extensions. My LocalSettings.php has the proper include for Maps.php followed by my google and yahoo api keys.

The error I see is: Fatal error: Unsupported operand types in /home/me/public_html/extensions/Maps/Maps.php on line 174

I am running MediaWiki v1.15.1 and trying to install Maps v0.7.2 (w Validator v0.4.2 that came bundled). As far as I can tell these versions should work together.

Any ideas?

Kburns05:22, November 7, 2010

I'd guess this is some PHP version issue. What version are you using?

Also, can I see the error somewhere online?

Jeroen De Dauw20:18, November 7, 2010

Yea, I am using:

PHP: 5.2.9 (cgi) MySQL: 5.0.91mm-log

I can't show this online because I need to have the site running, but the error message I posted is all that appears when the page loads.

Thanks for your help!

Kburns03:51, November 9, 2010

Not sure if this helps (you probably already knew this), but line 174 is the final line here:


       $wgExtraNamespaces += array(
              	Maps_NS_LAYER => 'Layer',
              	Maps_NS_LAYER_TALK => 'Layer talk'
       );
Kburns04:18, November 9, 2010

That's odd... PHP 5.2.9 should support += for arrays. Anyway, this code is synonymous, so will probably get rid of the issue for you:

       $wgExtraNamespaces = array_merge( $wgExtraNamespaces, array(
              	Maps_NS_LAYER => 'Layer',
              	Maps_NS_LAYER_TALK => 'Layer talk'
       ) );
Jeroen - LQT is failing when I login05:26, November 9, 2010
 
 
 
 

Trimming issue in 0.7 beta 3

In reply to this discussion:

This should be fixed now, and will be in RC1.

Jeroen De Dauw16:00, October 10, 2010

Cool, great to hear.

Yaron Koren20:32, November 9, 2010
 

Undefined method

After installing Maps version 0.7.1.7, I get these errors:

  • Warning: preg_match() [function.preg-match]: No ending delimiter '/' found in /var/www/vhosts/kgv.nl/httpdocs/wiki/includes/EditPage.php on line 1086
  • Fatal error: Call to undefined method Title::isSpecialPage() in /var/www/vhosts/kgv.nl/httpdocs/wiki/extensions/Maps/includes/features/Maps_BaseMap.php on line 98

Has anyone got an idea how to deal with them?

Ruud

83.160.112.22014:12, October 21, 2010

Maps 0.7.1 does not work with MW 1.15.x or lower (this is a bug). Maps 0.7 does work correctly with these older versions of MediaWiki, and so will Maps 0.7.2.

I recommend you upgrade your MW if possible, and otherwise install Maps 0.7 instead of 0.7.1.

Jeroen De Dauw16:03, October 23, 2010
 

Problem with setting a geocode attribut

The code
[[Coordinates:: {{#geocode:Mehringstraße, Gelsenkirchen, Germany|format=float|directional=no|service=google}}]]
does not work to set a geocode attribut. I guess it's up to a newline, which is printed before the coordinates. You can see the behavior on this test site: http://stadtwiki.ge1.de/index.php/Test

I'm using semantic maps 0.7 RC1

87.123.62.20207:38, October 14, 2010

It's fixed, and will be in 0.7, which will be released tomorrow :)

Jeroen De Dauw14:21, October 14, 2010

thanks for the quick turnaround and many thanks for this excellent extension.

87.123.41.7818:00, October 14, 2010
 
 

center issue with sementic maps

I found the center parameter doesn't work with #ask query:

Fatal error: Call to undefined method MapsGeocoder::attemptToGeocode() in 
/home/xxxxx/transitunlimited.org/extensions/SemanticMaps/includes/queryprinters/SM_MapPrinter.php on line 465
67.170.217.24719:03, October 11, 2010

Great find - it's fixed now on SVN trunk and will be in 0.7.

Jeroen De Dauw15:45, October 12, 2010
 

Geocode nesting

The old version allows nesting, but not the new version:

{{#compound_query:[[latlong::{{#geocode:1250 San Carlos Avenue, San Carlos, CA|google}} ({{{distance|1}}} mile)]][[Category:Rail stations]];?latlong;icon=Rail20.png
    |[[latlong::{{#geocode:1250 San Carlos Avenue, San Carlos, CA|google}}  ({{{distance|1}}} mile)]];?latlong;?Served by=Line;?-rail=Bus;?-Place=Bus
    |format=googlemaps2|controls=small,type,scale,searchbar|width={{{width|600}}}|height={{{height|500}}}|centre={{#geocode:1250 San Carlos Avenue, San Carlos, CA|google}}}}

If I use the geocode tag alone, it works:

{{#geocode:1250 San Carlos Avenue, San Carlos, CA|google}}

Also if I use the Semantic Search page, this is what I got (you can also find it here) when I try to display the results as a page:

Fatal error: Call to undefined method MapsGoogleMaps::getTypeNames() in 
/home/xxxxx/transitunlimited.org/extensions/SemanticMaps/includes/services/GoogleMaps/SM_GoogleMapsQP.php on line 71

The new version is stable enough for the site so I am keeping it for now. I am not using the geocode feature for now any way.

67.170.217.24718:30, October 11, 2010

The nesting issue is tricky - I don't see any immediate way to fix it. Note that the centre parameter does support smart geocoding, so it's not needed to nest a #geocode call there.

The fatal error has been fixed on SVN trunk and will be gone in 0.7.

Jeroen De Dauw15:52, October 12, 2010
 
First page
First page
Next page
Next page
Last page
Last page
Personal tools
Namespaces
Variants
Views
Actions
Navigation
Manuals
Useful lists
More awesomeness
Toolbox