Giter Club home page Giter Club logo

maps's People

Contributors

abijeet avatar acnetj avatar addshore avatar akionux avatar amire80 avatar danwede avatar dependabot[bot] avatar floriansw avatar gcebelieu avatar helmutleitner avatar jeroendedauw avatar kghbln avatar legoktm avatar mlidal avatar mwjames avatar netbrain avatar nikerabbit avatar nischayn22 avatar paladox avatar pastakhov avatar petertheone avatar raymondde avatar reedy avatar samwilson avatar shirayuki avatar siebrand avatar translatewiki avatar universal-omega avatar vedmaka avatar yaronkoren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

maps's Issues

Maps no longer showing infowindow

I'm returning to the already known issue "Maps no longer showing infowindow" (e.g. see http://goo.gl/nQ3HaF).

I found this issue neither resolved nor patched. Moreover, I've found the issue inconsistent, namely:

  1. infowindow is not working
    <display_points type="terrain">
    Amsterdam
    Berlin|This is Berlin
    London|London|The capital of [[England]].
    Ghent|Ghent|Most awesome city in Europe|Green marker.png
    </display_points>

  2. but infowindow is working
    {{#display_map:
    Moscow, Russia~Moscow~A city in Russia;
    New York~New York city;
    London~[[London]]~Capital of England~File:Green marker.png;
    Brussels;
    Mali~Mali~~File:Blue marker.png
    }}

These results were obtained for the following options:
Product Version

  • MediaWiki 1.23.6
  • PHP 5.3.29 (cgi-fcgi)
  • MySQL 5.1.72-cll-lve
  • Semantic Bundle 1.9.2
  • Maps 3.0.1
  • Validator 1.0.0.1

I'd be grateful for an answer about resolving this issue.

Imageoverlays doesn't insert an image

Using the map editor, I tried to insert an image as an overlay onto a map. It works fine in the map editor, but when exporting wiki code and pasting into a wiki page, the displayed map ignores the imageoverlay completely. Not only is the image not shown, the map does not zoom in to the correct location either (instead starting at 0,0).

Mediawiki 1.21, Maps 3.0.1.

Thanks!

Improper handling of UTF-8 in MapEditor code

Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=42620

sprintf() used in the code for Special:MapEditor (now moved to Maps/includes/editor/EditorHtml.php) doesn't handle UTF-8 properly.

Seems to me that this problem causes "Uncaught SyntaxError: Unexpected token ILLEGAL" to appear in the console when using the googlemapsEditor forminput in http://openurbandev.com/index.php?title=Special:FormEdit/Address/Home
and hence on saving the page weird things happen like redirection to Homepage

Also the coding styles are not followed here.

see http://www.php.net/manual/en/function.sprintf.php#86304

-- Nischay Nahata 2012-12-02 11:02:09 UTC

Merge "missing" system messages

The following system messages are used by both googlemaps, openlayers and leaflet should be "aliased":

maps-par-zoom

  • maps-googlemaps3-par-zoom -> maps-par-zoom
  • maps-openlayers-par-zoom -> maps-par-zoom
  • maps-leaflet-par-zoom -> maps-par-zoom

maps-par-searchmarkers

  • maps-googlemaps3-par-searchmarkers -> maps-par-searchmarkers
  • maps-openlayers-par-searchmarkers -> maps-par-searchmarkers

maps-par-resizable

  • maps-googlemaps3-par-resizable -> maps-par-resizable
  • maps-leaflet-par-resizable -> maps-par-resizable
  • maps-openlayers-par-resizable -> already maps-par-resizable

Dealing with issues from twn

Occasionally there is some feedback from translators about specific messages. What is the best way to deal with them I case I have no clue how to answer or resolve it directly without needing in involve you, i.e. @JeroenDeDauw?

Filter/Searching does not find points

Using the searchmarkers parameter show a "Filter markers" box in the upper right as expected, but typing anything in that box does not find any markers.

For example, see https://semantic-mediawiki.org/wiki/Maps_examples/Google_Maps_searchmarkers

The suggested search terms of "capital of" and "city" return nothing. My experiments can find no search term that matches any of the filters. I've tried direct copy-and-paste from the points' titles and descriptions, such as "Norway", "Meanwhile in Norway", "Capital of the United Kingdom", etc., and nothing is found.

The same result is found on OpenLayer searches: https://semantic-mediawiki.org/wiki/Maps_examples/OpenLayers_searchmarkers

The same result is found using either the tags or the parser function.

Semantic map displays "loading" and fails to load

Hi,

I am trying to fix a map that doesn't work here: http://wiki.km4dev.org/Members_-_Map

I checked the syntax: correct, checked js errors: none, checked for incompatible extensions: none, checked for known bugs in MW version that could impact extension: none, checked php config files syntax for errors or missing parameters: none.

Unfortunately I don't have access to server logs, but nothing where I checked seems to be wrong. In fact I noticed that at times the map shows up correctly, only to disappear again if I refresh the page. See attached screenshot.

Would you be able to help?

screenshot 2015-05-08 14 12 56

Cannot install Maps

Hi all,
i followed the guide but i cannot get the Maps extension works. Here some data:

  • MediaWiki version: 1.20.4
  • PHP: 5.3.3

Maps installed with the ExtensionInstaller extension. ExtensionInstaller is correctly listed in the Special:Version page but Maps is not and its tags are not working.

Maps and Validator are correctly downloaded by Composer in the extension\ExtensionInstaller\extensions folder.

Any help will be appreciated. :\

Improve default zoom when there are no coordinates

Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=57337

You can see the issue here:

http://semantic-mediawiki.org/wiki/Yaron%27s_location

This page calls a template, which calls #display_point - the "coordinates" parameter is set to null, while the "zoom" parameter is set to 7. So, what shows up on the map is a highly-zoomed view of a location somewhere off the coast of Africa. Instead, if the coordinates (or address, etc.) are null, I would think #display_point should ignore the "zoom" parameter, and always set to it the lowest zoom level, i.e. show the whole world.

-- @yaronkoren 2013-11-21 01:35:46 UTC

Zoom Level of Openlayers for OSM Mapnik

In the initialization of OpenLayers.Layer.OSM.Mapnik under Maps / includes / services / OpenLayers / OSM / OpenStreetMap.js, I wonder if the definition of numZoomLevels should be increased to 20 rather than the current 19, as zoomlevels 0-19 are now available?

At present, using service=openlayer, only up to zoomlevel 18 can be accessed for OSM Mapnik. This apparently cannot be overridden by setting the maxzoomlevel parameter.

Circle objects don't use fill color or opacity specifications

When creating circle objects on a map (using "circles"), the objects don't seem to use the fill color, opacity, stroke weight or anything besides the stroke color, caption and text. The map editor lets you create circles with all these parameters (and displays them properly) but exporting the wiki code and embedding in a wiki page makes all the circles appear filled in the default red color. Mediawiki 1.21, Maps 3.0.1. Thanks!

Standardize and shorten the lenght of coordinates

This is an issue reported on mw.o which I think will be a nice enhancement:

I 'm wondering why the coordinates are so long: 14 numbers for latitude/longitude while only 6 would be enough for precision (cf. older version of Google Maps extension). As a result, when you draw long lines or add many points, the size of the page becomes too heavy.

Would it be possible to shorten them?

For instance: 47.254301,-1.679535 instead of 47.25430126476208,-1.67953552941873

Allow maps if server has no Internet connection

If the MediaWiki server does not have an Internet connection (which is typical within enterprise Intranets), the Google and OSM maps embedded on client side are empty. The frame is shown, but there is no map.

It would be great if server-side processing could be disabled (e.g. fetching geocode) in order to support showing maps purely fetched and rendered on client-side.

See this mailinglist thread.

Problems with tag extension

I'm getting issues with the tag extension. Sometimes the points aren't rendered correctly, whereas the parser function works reliably.

For example: https://semantic-mediawiki.org/wiki/Maps_examples/Point_specific_data

The first and last maps don't show any of the points, which seams to be due to the "Mali|Mali||File:Blue marker.png" line. However, even without that line, none of the pop-ups on click work.

The middle map works correctly (minus the File: issue) with the parser function.

There are various other examples in the Maps examples that display defective tag behavior (especially defective pop-up behavior), such as: https://semantic-mediawiki.org/wiki/Maps_examples/Google_Maps_tag_and_autoinfowindows

Ability to add custom maptypes with the googlemaps service

Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=44869

It would be great to be able to add custom map types to the googlemaps service. In my specific case, for instance, I would like to overlay the map offered by the Norwegian Mapping Authority (Statens Kartverk) alongside Google's terrain map. Documentation for how to do this can be found here: https://developers.google.com/maps/documentation/javascript/maptypes#CustomMapTypes

Using a practical example, with the Norwegian Mapping authority as described, the Javascript code would/could like like this:

function StatkartMapType(name, layer) {
  this.layer = layer
  this.name = name
  this.alt = name
  this.tileSize = new google.maps.Size(256,256);
  this.maxZoom = 19;
  this.getTile = function(coord, zoom, ownerDocument) {
    var div = ownerDocument.createElement('DIV');
    div.style.width = this.tileSize.width + 'px';
    div.style.height = this.tileSize.height + 'px';
    div.style.backgroundImage = "url(http://opencache.statkart.no/gatekeeper/gk/gk.open_gmaps?layers=" + this.layer + "&zoom=" + zoom + "&x=" + coord.x + "&y=" + coord.y + ")";
    return div;
  };
}

var map;

function initialize() {
  var mapOptions = {
    zoom: 8,
    center: new google.maps.LatLng(60,9),
    mapTypeControlOptions: {
      mapTypeIds: ['topo2', google.maps.MapTypeId.TERRAIN]
    }
  };
  map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
  map.mapTypes.set('topo2',new StatkartMapType("S.Kartverk", "topo2"));
  map.setMapTypeId('topo2');
}

-- [email protected] 2013-02-11 11:34:08 UTC

Generated URLs are not protocol relative

There are a multitude of hardcoded http://foo.bar.tld links in the extension code and js files. This means that whenever the extension is used on a TLS-secured wiki, any modern browser will warn about mixed security.

I've tried to do a recursive change of all 'http://' strings to just '//', which seem to work, at least for the OpenLayer type of maps. But this is probably too much, as it will also change urls in comments and documentation.

Where run the code?

Hi all,

MediaWiki 1.23.4
PHP 5.3.29 (cgi-fcgi)
MySQL 5.5.36-cll-lve

Please tell me - where to perform this code?
wget http://getcomposer.org/composer.phar and
php composer.phar require mediawiki/maps "*"

In Ci-panel on PhpMyAdmin on tab "SQL"? Or where?

I download the file:composer.phar in the root folder my wiki. But I can not understand where to execute these lines of code?

Thanks

Category:Pages with a map rendered by the Maps extension - show or hide?

Pages on which the Maps extension is used are automatically included in the category "Pages with a map rendered by the Maps extension". Is this intended behaviour or do we want to hide the category from the page? I'm not really sure myself, but it does make you wonder. What's the thinking here?

Better clustering behaviour for makers on the same location

http://sourceforge.net/p/semediawiki/mailman/message/32510196/

Hi all,

I have this inline query:

{{#ask:[[Has Coordinates::+]]
|?Has Coordinates
|format=googlemaps
|markercluster=yes
|height=400
}}

Has Coordinates was geocoded from a string property Country in a Template
as follows:

...
! Countries
| {{#arraymap:{{{Countries|}}}|,|x|[[Country::x]] {{#set:Has
Coordinates={{#geocode:x|geonames}}
...

And its pretty nice! My problem is if I have multiple items with the exact
same coordinates (say, I have 10 pages for Sudan), the markerclusterer
logic in Semantic Maps just zooms in and doesn't have any processing to
show the items on the exact same location. It just shows the cluster.

Ideally, something similar to this "spidercluster" effect would be nice:

http://www.ejw.de/ejw-vor-ort/ (click on a marker to show the spider
effect).

Thanks in advance!
Joel

Not loading all map tiles when entering googlemaps fullscreen mode

When going into the googlemaps fullscreen mode, not all tiles in the map will load. Only a part of the map canvas, corresponding to the previous map size, will actually show and update map tiles.

There is a very simple fix for this. Simply add google.maps.event.trigger(map, "resize"); at line 811 in includes/services/GoogleMaps3/jquery.googlemap.js. This will make the map load all the appropriate tiles for the new size.

Reverse geocoding

Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=44870

It would be great if the Maps extension could provide reverse geocoding, something at least Google provides. As of now, if you use the #geocoder parser hook with coordinates as a parameter, you simply get a conversion of the coordinates. But if you use the Google geocoder api and send coordinates with the latlng parameter, you get a response formatted as xml or a json structure with addresses ranging from very specific to very general. Being able to pass some coordinates and pick out things like the city and different administrative areas (municipality, county, state, etc) would be very useful.

The method for doing this is basically identical to regular geocoding, with a few minor adjustments, and can be found here:

https://developers.google.com/maps/documentation/geocoding/?hl=en#ReverseGeocoding
https://developers.google.com/maps/documentation/javascript/geocoding?hl=en#ReverseGeocoding

Example: http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=false

-- [email protected] 2013-02-11 11:53:24 UTC

geocode missing i18n message

Core test fails me locally because of missing i18n message:

  1. UserTest::testAllRightsWithMessage
    Each user rights (core/extensions) has a corresponding right- message.
    Failed asserting that two arrays are equal.

maps_layers error during update.php

https://www.mediawiki.org/wiki/Thread:Extension_talk:Maps/Creating_maps_layers_table_..._Database.php:_Could_not_open_file.

php maintenance/update.php
...
Rewriting tsearch2 triggers ...done.
Creating maps_layers table ...[1c451ba4] [no req] Exception from line 3560 of /wiki/includes/db/Database.php: Could not open file.

Backtrace:

0 /wiki/includes/installer/DatabaseUpdater.php(642): DatabaseBase->sourceFile(NULL)

1 /wiki/includes/installer/DatabaseUpdater.php(665): DatabaseUpdater->applyPatch(NULL, boolean, string)

2 [internal function]: DatabaseUpdater->addTable(string, NULL, boolean)

3 /wiki/includes/installer/DatabaseUpdater.php(435): call_user_func_array(array, array)

4 /wiki/includes/installer/DatabaseUpdater.php(399): DatabaseUpdater->runUpdates(array, boolean)

5 /wiki/maintenance/update.php(160): DatabaseUpdater->doUpdates(array)

6 /wiki/maintenance/doMaintenance.php(113): UpdateMediaWiki->execute()

7 /wiki/maintenance/update.php(201): require_once(string)

8 {main}

Notice: Uncommitted DB writes (transaction from DatabaseUpdater::doUpdates). in /wiki/includes/db/Database.php on line 3945

Map does not show when maker count gets to big

Can the problem be viewed online in a public wiki? (If yes, provide its URL.)

https://karaoke.kjams.com/wiki/Map/Test

Which versions of the relevant extension(s) was/were used?

current / latest

Which version of MediaWiki was used?

current

Which server setup was used (PHP, MySQL, OS)?

MySQL i think, and MacOS

Can the problem be reproduced on another wiki (like this one)? (If yes, provide its URL.)

probably, haven't tried

overlapping markers

Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=23739

Combine tooltips for overlapping markers or have next/previous buttons on the tooltip, whatever works best with the google api.

Right now when one has overlapping markers, only one can be accessed and only the top tooltip is shown on click.

-- Ed 2010-06-01 06:22:50 UTC

Add a geocoding cache

With the current setup, each time a page is saved, all geocoding requests on it are made. Given the geocoding services impose limits, it is not desirable to constantly hit them with the same requests. Some form of persistent caching of the geocoding calls would fix this.

Use a geocoding library

Using a geocoding library such as geocoder-php or geotools has several benefits over the current custom code Maps has:

  • More geocoding services can be offered (new functionality)
  • Reverse geocoding support (see #22) (new functionality)
  • We do not need the current custom code (less maintenance)

Message "Maps-searchmarkers-text"

Message text: "Filter markers"

Question: Is Filter to be translated as a verb or a noun?

I think it is to be translated in a sense that one can filter by markers when using the filtering, however I am not sure. If yes it should probably better say "Filter by markers"

example page seems broken or I just currently do not get the magic :|

Map IP address (like: {{#display_map:IP=123.123.0.0}})

Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=48279

It would be great if the Mediawiki Maps plugin is able to 'map' IP addresses. So something like: {{#display_map:IP=209.85.139.9}}

I can see lots of cool stuff if this is possible. For example, we are hosting software that people can download for free but we do capture people's IP address. Would be nice to create a map to show where software went to.

Thanks for considering,
Albert.

-- [email protected] 2013-05-08 22:41:58 UTC

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.