Skip to content

Select on mapsource type="geojson" only works with "Draw Point" #571

@brentfraser

Description

@brentfraser

To reproduce with Desktop example:

  1. Add selectable="true"attribute to default layer tag of places ("Cities and Villages") mapsource
  2. Add <template name="select" auto="true" /> tag to the default layer
  3. Turn on "Cities and Villages" layer (you may need to zoom out a bit)
  4. Do "Select Features" and select the "Draw Point" option
  5. Draw a point in one of the polygons
  6. Observe the expected results (this is good)
  7. Now try with "Draw Polygon" and draw a polygon over the layer polygons.
  8. Observe no results returned (this is bad)

I see in map.js, the logic is set up only to use point for selection geometry for "vector" (inc. geojson) mapsources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions