Opened 14 years ago

Closed 12 years ago

#1282 closed enhancement (fixed)

Enlarge the box in which symbols data and url are retrieved in ajaxmappane.templ

Reported by: gabrimonfa Owned by:
Priority: low Milestone:
Component: AJAX Viewer Version: 2.2.0
Severity: trivial Keywords:
Cc: External ID:

Description

When complex symbols are used, it is not always obvious for users which is the symbol center. For this reason users sometimes complain that they are not able to select or click on symbols and this was usually due to very small cursor misplacement.

In order to ease symbols selection I propose to enlarge the box in which symbol url data is retrieved from 2x2 to 5x5 pixels. In this way symbols are easier to select without increasing much the probability to have more than one symbol inside the box.

Attachments (1)

ajaxmappane.templ.diff1 (871 bytes ) - added by gabrimonfa 14 years ago.
enlarge the box from 2x2 to 5x5 pixels

Download all attachments as: .zip

Change History (4)

by gabrimonfa, 14 years ago

Attachment: ajaxmappane.templ.diff1 added

enlarge the box from 2x2 to 5x5 pixels

comment:1 by tomfukushima, 14 years ago

Instead of doing this, I think we should fix symbol selection so that if the cursor is over a part of the symbol, that it will be selected. One way to do this is to create a "display list" that is stored in the MapGuide session---the mouse moves could then do quick hit tests against the display list. Another way might be to use image maps that could be clicked (I doubt if these would be as accurate as display lists though)---and not sure how scalable it would be with thousands of features.

The reason we need a display list or image map is because the "stylized symbol" can be quite different from the features point geometry (e.g., the symbol can be quite big, or it could be offset from the point completely); so to restylize all geometries within in a layer on the fly to do a point selection would be way to compute intensive for the server. Also note that the same problems exist for lines which could also be offset or styled to be quite large.

comment:2 by gabrimonfa, 13 years ago

Version: 2.1.02.2.0

comment:3 by jng, 12 years ago

Resolution: fixed
Status: newclosed

Fixed r7138. Note we haven't actually changed the box size, but we have localized all references to a single variable that you can change to suit your liking.

Note: See TracTickets for help on using tickets.