ProfessionalWiki / ProfessionalWiki/Maps

activeicon is ignored in AJAX queries

Open
#359 3 comments 0 reactions 1 assignee View on GitHub

@PeterTheOne is already working on this.

Since Sep 23, 2017.

bug SMW
Dominant language
JavaScript
Stars
78
Forks
65
Avg merge
9h 17m
Merged PRs (30d)
6

Description

Setup
  • MW version: 1.29.1
  • DB (MySQL etc.): 5.5.57
  • PHP version: 5.6.31-1~dotdeb+7.1
  • Maps version: 4.2.1 and 4.4.0
  • SMW version (if applicable): 2.5.4
Issue

I have a query like this:

{{#ask: [[Adresse:+]]
|?Coordonnées
|format=leaflet
|width=300px
|hidenamespace=yes
|icon=/assets/oval-15.png
|activeicon=/assets/pin.png
|enablefullscreen=yes
|limit=2000
|ajaxcoordproperty = Coordonnées
|ajaxquery = [[Adresse:+]]
|zoom=17
}}

On initial display, the current page is correctly represented by the icon set in activeicon:
image

But if I move the map, all markers are replaced by the result of the AJAX query and the current page marker is replaced by the regular icon:
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.