License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Join this plugin team

Changelog for release 3.0.0 - 16/10/2009

Other releases

Release 3.1.0 - 20/11/2009

corrected package.xml

added GMapDirections functionalities

Release 3.0.0 - 16/10/2009

Added nice samples

Use the Google Map API v3

Release 1.0.4 - 03/06/2009

Added a very practical function $gMap->getBoundsFromCenterAndZoom(...) which enables one to calculate server-side the bounds corresponding to specific center coordinates, zoom, and map size. This is the equivalent client-side of map.setCenter(...,...);map.setZoom(...);map.getBounds(); It uses Mercator projection formulas as used by the Google Maps

A new function function $gMapMarker->isInsideBounds($bounds)

Corresponding Unit tests

And a new sample using the two last functionalities

Release 1.0.3 - 03/05/2009

Added tomr's contribution: it is now possible to add multiple controls to the map

Also bundled with GMapCoord::distance($coord1, $coord2) function which gives an estimation of the distance between two coordinates

Release 1.0.2 - 03/05/2009

Corrected the Mercator projections for the GMapCoord::fromPixToLat and GMapCoord::fromLatToPix functions

Used PHP pi() and deg2rad functions for better precision

Created tests for the Mercator projections

Added the GMapBounds::getBoundsContainingMarkers($markers) function

Added the GMap::centerAndZoomOnMarkers() function which enables to guess zoom and center of the map to fit the markers. Center is easy to guess. Zoom uses width and height of smallest bound, pixel width and height of the map and Mercator projection

Release 1.0.1 - 15/03/2009

fabriceb: Corrected the package.xml to add all 1.2.x versions of symfony to the list of compatible versions

added some very interesting functions concerning coordinates : you can now transform lat/lng into Google Map' pixels coordinates system and vice-versa. This enables one to calculate the bounds around a coordinate for example, knowing only the Google Map's height/width in pixels

Release 0.9.4 - 13/03/2009

removed the call to the Helper Tag to use the escape_javascript function to ensure symfony 1.2 compatibility