Writing a new module: integration with google maps
missoni
Joined: 2013-09-06
Posts: 13 |
![]() |
Hey guys! I am new to Gallery3, having used the old Gallery2 engine once, but I have never done any programming for it. Now I need to write a custom module and before I set off programming I wanted to check with the community that my understanding of module structure is right. I want to connect a custom Google map to my gallery. I use Gallery 3.0.9. gmaps module does not seem to work or be supported any more and since there is no other similar module, I guess I will have to write my own. Idea: Implementation sketch: Is my logic so far correct? I would be grateful for any help and suggestion, since this is my first time programming a module for Gallery3. Thanks in advance! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
http://codex.galleryproject.org/Gallery3:Modules:exif_gps Dave |
|
missoni
Joined: 2013-09-06
Posts: 13 |
![]() |
Hey floridave, static function item_edit_form($item, $form) { I want to replace the last two lines with something like: <div id="map-canvas" class="edit_gps_coords_map_canvas"> and add a scripting line to call map initializer to the page header. Is this possible? Thank you in advance! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
I don't know much about the form generator of Kohana. What I would do is use jquery to remove the 2 inputs ( or leave them there ) and append or preppend the input with your div. Or replaceWith or something similar. Dave |
|
xeta
Joined: 2011-11-24
Posts: 42 |
![]() |
Did you already go through this threat http://galleryproject.org/node/94762 Something could be helpful for your project. The actual module seems not to be supported anymore but in the end i figured out how to get it back to work (last posts of certain threat) |
|
missoni
Joined: 2013-09-06
Posts: 13 |
![]() |
Thanks for the fast replies! floridave wrote:
If you need some help with the Jquery part I can do a bit of digging finding a few examples. If you could help we with an example, that would be great! I want to add a div displaying a small map so that the user can click on the map & populate lat&lng fields automatically. I am otherwise absolutely unfamiliar with Kohana framework. Can I activate this dialog after image upload is finished when the EXIF tags have already been parsed? Quote:
Did you already go through this threat http://galleryproject.org/node/94762 Thanks for the link! Unfortunately none of the suggestions there can really help me here. Thanks in advance for any help! |
|