Talk:Maps
Discussion page moved!
Use the new one on mediawiki.org instead!
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| Google Maps v3 issues | 1 | 07:55, March 10, 2011 |
| $wgSscriptPath | 1 | 14:28, February 9, 2011 |
| default width | 2 | 15:09, January 31, 2011 |
| Point to address in map | 1 | 17:06, January 21, 2011 |
| alignment of maps on page | 1 | 20:52, January 1, 2011 |
| Maps Pop-Up Resize Issue | 2 | 19:09, December 15, 2010 |
| New error/warning: array_merge() Argument #1 is not an array in... | 3 | 18:22, December 15, 2010 |
| Place for Keys | 2 | 08:41, December 9, 2010 |
| Fatal error: Unsupported operand types in ... | 14 | 20:29, November 29, 2010 |
| Trimming issue in 0.7 beta 3 | 1 | 20:32, November 9, 2010 |
| Undefined method | 1 | 16:03, October 23, 2010 |
| Problem with setting a geocode attribut | 2 | 18:00, October 14, 2010 |
| center issue with sementic maps | 1 | 15:45, October 12, 2010 |
| Geocode nesting | 1 | 15:52, October 12, 2010 |
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |
Just wondering if anyone else if having problems when trying to set the default webservice to googlemaps3
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.
The default width is width:100%. This width is problematic width floating objects:
The default width should be width:auto like the CSS default.
Hi!
I want to show the following address in my wiki: 90 Jalan Batu Belig, Kerobokan Kelod, Kuta, Bali, Indonesia
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
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)
This is possible. See here for an example.
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
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 :)
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.
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!!
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?
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.
The issue has been fixed a while back on svn trunk. Working code can be found here.
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?
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.
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?
I'd guess this is some PHP version issue. What version are you using?
Also, can I see the error somewhere online?
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!
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'
);
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
[[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
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
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.
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |




