Hello Thomas,

Originally I had idea about ajaxified widget based implementation,
something like:
1. Implement the widget, initially it's might be single field to hold
lat/lng.;
2. Implement button on the right of field, to open up modal window with
gmap;
3. Modal window will show the map and movable pointer, once you done,
the field in #1 will be filled out by lat/lng values;

The address specific fields might be captured from original form, we can
setup relations in app.yml for example:
  sfGMapPicker:
    address_field: (required)
    city_field: (optional, will be added to request)
    country_field: (optional, will be added to request)

Then parameters will be passed to javascript part which will capture
actual values from parent form when user open modal window and pick
lat/lng when user happy with position of marker. This is just an idea
and on the first look would be very easy to integrate into existent
projects, but might have some drawbacks I not noticed yet... :)

Thanks.

Thomas Rabaix wrote:
> I will probably add a new version with more fields. Do you have
> specifics thought on it ?
>
> On Fri, Mar 13, 2009 at 6:50 PM, Yevgeniy A. Viktorov
> <w...@osmonitoring.com <mailto:w...@osmonitoring.com>> wrote:
>
>
>
>     Yeah, that's it!
>
>     Have you any futher todo? :)
>
>     Thank you!
>
>     Thomas Rabaix wrote:
>     > You should read these posts :
>     >
>     >
>     
> http://rabaix.net/en/articles/2009/03/02/how-to-create-a-multi-field-widget-with-sf-form
>     >
>     
> http://rabaix.net/en/articles/2009/03/04/how-to-use-the-sw-widget-form-g-map-address-widget
>     >
>     > ;)
>     >
>     > On Fri, Mar 13, 2009 at 6:15 PM, Yevgeniy A. Viktorov
>     > <w...@osmonitoring.com <mailto:w...@osmonitoring.com>
>     <mailto:w...@osmonitoring.com <mailto:w...@osmonitoring.com>>> wrote:
>     >
>     >
>     >
>     >     Congrats, Fabrice :)
>     >
>     >     What do you think about form widget with such functionality:
>     >     http://addresschooser.mapeed.com/doc/
>     >     to pick lng/lat visually?
>     >
>     >     That's just an idea I would like to implement, but if no one did
>     >     it yet? :D
>     >
>     >     Thanks.
>     >
>     >     Fabrice B wrote:
>     >     > sfEasyGmapPlugin is a very easy to use Google Maps API
>     plugin for
>     >     > symfony, inspired by the Phoogle class... but better :-)
>     >     >
>     >     > A very simple version has been available for a few months
>     but I have
>     >     > now finally released the 1.0 version,  with the following new
>     >     > features :
>     >     >
>     >     > - it is now sf1.2 compatible straight out of the box
>     >     > - it has some unit tests
>     >     > - the GMap constructor now takes an array of parameters, which
>     >     is much
>     >     > more flexible and also more in the symfony coding spirit
>     (Warning :
>     >     > the modification of the GMap constructor should break your
>     >     application
>     >     > if you used the prior version of sfEasyGMapPlugin)
>     >     > - there are interesting functions concerning Bounds :
>     >     >   - smallest enclosing bound
>     >     >   - propel criteria "in bounds"
>     >     >   - homothety transformation
>     >     >   - zoomOut transformation
>     >     > - there are interesting functions concerning conversion
>     from/to lat/
>     >     > lng to/from Google's pixel coordinates system. These can
>     be very
>     >     > useful if you want to guess the bounds knowing only the
>     center lat/
>     >     > lng, the zoom level and the map's width/height in pixels. They
>     >     involve
>     >     > a few mathematical formulas that were not so
>     straightforward, (since
>     >     > you need to understand how Google's projection works) so
>     trust me,
>     >     > these functions are valuable, even if they only concern
>     power users.
>     >     >
>     >     > I have also developed a few doctrine-specific functions
>     which are
>     >     > unfortunately not available yet because not generic enough. I
>     >     will try
>     >     > to release them in the next version.
>     >     >
>     >     > The official symfony page is here :
>     >     http://svn.symfony-project.com/plugins/sfEasyGMapPlugin
>     >     >
>     >     > Please feel free to comment on this work in progress, here
>     or on my
>     >     > blog :
>     >     >
>     >    
>     
> http://www.theodo.fr/blog/2009/03/symfony-google-maps-api-plugin-sfeasygmapplugin-v10-is-out/
>     >     >
>     >     > Regards,
>     >     >
>     >     > Fabrice Bernhard
>     >     > --
>     >     > http://www.theodo.fr
>     >     > >
>     >     >
>     >     >
>     >
>     >
>     >
>     >
>     >
>     > --
>     > Thomas Rabaix
>     > http://rabaix.net
>     >
>     > >
>
>
>
>
>
> -- 
> Thomas Rabaix
> http://rabaix.net
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to