#1758 closed defect (fixed)
Selecting point features that have been styled using fonts a reprojected layer linked
Reported by: | hubu | Owned by: | hubu |
---|---|---|---|
Priority: | medium | Milestone: | 2.3 |
Component: | Rendering Service | Version: | 2.2.0 |
Severity: | trivial | Keywords: | Symbol |
Cc: | External ID: | 1381956 |
Description
When styling point symbols using a font (or a simple symbol definition), and the layer is being reprojected, then clicking on the rendered symbol in the map does not select the feature unless the mouse is clicked exactly on the insertion point. Steps to reproduce:
- Create a layer that uses a point feature class (eg: trees sdf from Sheboygan sample data).
- Edit the layers point style to use Arial font symbol ‘a’ character. Choose something large like 1 centimetre in device space.
- Add the new layer to a new map.
- Change the co-ordinate system of the map to something different to that of the layer.
- Preview the map and attempt to select a feature by clicking on it with the standard select tool
- The feature is only selected if you click right in the centre. Click most places around the symbol does not select the feature.
- Try the same thing with the point styled using a SymbolDefinition
Attachments (1)
Change History (4)
by , 13 years ago
Attachment: | fix#1758 .patch added |
---|
comment:1 by , 13 years ago
This is a CS transform issue. In the step#4, if we don't change the cs of the map, this issue will not happen. The reason of this issue is in renderingforselection() function, the map extent is not transformed to the cs of layer, there is not intersetion between the map extent and the selection point, because they are not in the same CS. And there is another issue, when stylizeVectorLayer, we also need a xformer, or else the LineBuffer and the selection point are not in the same CS.
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 13 years ago
Fixed in Trunk by https://trac.osgeo.org/mapguide/changeset/6013/trunk/MgDev
This is the fix for this ticket.