jeffreykemp / jk64-plugin-reportmap

Report Google Map APEX Plugin
https://jeffreykemp.github.io/jk64-plugin-reportmap/
MIT License
42 stars 16 forks source link

Allow user to select a map area #149

Open jeffreykemp opened 3 years ago

jeffreykemp commented 3 years ago

Enable a drawing mode wherein the end user can:

  1. Draw a rectangle on the map
    • Highlight any pins that fall within the selected region
    • Raise a page event
  2. Move and resize the selected region (but remain a rectangle)

The page event would give the bounds of the selected region, as well as an array of IDs for each pin that falls within the selected area.

The markerFormatFn function may be used to control how the pins are shown when they are in the selected region or not (marker.selected will indicate this).

raghu607 commented 3 years ago

Hi Jeff, This is a great plugin and i have just added this plugin to my application. The thing I have a similar requirement for allowing users to select a map area by drawing a rectangle and then highlight all the pins that fall under selected area; once the users do this I want to get the IDs of all the pins of the selected area. After i get these IDs, the next step is perform a search within the database based on these IDs. Please let me know if you have a working example or demo or steps to achieve this. Thank you for this plugin and its really very cool.