jeffreykemp / jk64-plugin-reportmap

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

Make marker draggable #40

Closed dickdral closed 5 years ago

dickdral commented 7 years ago

Hi Jeff,

Thanks for creating this plug-in. I really like it. And it has got lots of functionality! I was on my way to create the same functionality when I discovered this one.

One thing I needed was for markers to be draggable. I keep track of my expenses and use GPS to recognize which shop I am in. This is not always accurate, so I want to correct the positions afterward. I took your code and modified it a bit and got the draggable markers. I attach the modified plug-in (extension .txt instead of .sql) and a Word document describing the changes I have made.

Best wishes,

Dick Dral Changes to existing JK64 Google maps plugin to add draggable markers.docx

region_type_plugin_com_jk64_report_google_map28422.txt

jeffreykemp commented 7 years ago

Thanks Dick, I'll certainly incorporate these changes.

jeffreykemp commented 6 years ago

Unfortunately the latest release has hit the limit of 25 attributes - will need to rework the plugin to allow this change.

jeffreykemp commented 5 years ago

This will be implemented in v1.0. The plugin will have an optional attribute "Draggable". If set, all the report pins will be draggable. When the user drags a pin, the plugin will raise a new event "markerDrag" which you can respond to using a dynamic action. You can then do whatever you want in response to the drag event.