Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | GMaps.js - A Javascript library that simplifies your life |
| 2 | ========================================================= |
||
| 3 | |||
| 4 | GMaps.js allows you to use the potential of Google Maps in a simple way. No more extensive documentation or large amount of code. |
||
| 5 | |||
| 6 | Visit the examples in [hpneo.github.com/gmaps](http://hpneo.github.com/gmaps/) |
||
| 7 | Go to the API Documentation [hpneo.github.io/gmaps/documentation.html](http://hpneo.github.io/gmaps/documentation.html) |
||
| 8 | |||
| 9 | Build |
||
| 10 | ------ |
||
| 11 | |||
| 12 | If you would like to build gmaps from source run the following at the terminal: |
||
| 13 | |||
| 14 | ```sh |
||
| 15 | git clone https://github.com/HPNeo/gmaps.git |
||
| 16 | cd gmaps |
||
| 17 | npm install |
||
| 18 | grunt |
||
| 19 | ``` |
||
| 20 | |||
| 21 | Changelog |
||
| 22 | --------- |
||
| 23 | |||
| 24 | 0.4.15 |
||
| 25 | ----------------------- |
||
| 26 | * Add overlay to mouseTarget when click event is set |
||
| 27 | * addControl/createControl now accepts HTML elements or HTML strings |
||
| 28 | * Add containsLatLng to google.maps.Circle |
||
| 29 | |||
| 30 | 0.4.14 |
||
| 31 | ----------------------- |
||
| 32 | * Fix bug in drawPolygon |
||
| 33 | * Hide context menu before the zoom is changed |
||
| 34 | |||
| 35 | 0.4.13 |
||
| 36 | ----------------------- |
||
| 37 | * Allow unitSystem setting in travelRoute |
||
| 38 | * Add functionality to remove controls |
||
| 39 | * Delegates non custom events to google.map |
||
| 40 | * Convert featureType and elementType toLowerCase in static maps |
||
| 41 | |||
| 42 | 0.4.12 |
||
| 43 | ----------------------- |
||
| 44 | * Adds ability to listen for clicks on overlays |
||
| 45 | |||
| 46 | 0.4.11 |
||
| 47 | ----------------------- |
||
| 48 | * Add RadarSearch to the places layer |
||
| 49 | * Update default control styles to match new Google Maps release. |
||
| 50 | |||
| 51 | 0.4.10 |
||
| 52 | ----------------------- |
||
| 53 | * Fix and optimize removeMarkers |
||
| 54 | * Fix bug in addMarker (issue #270) |
||
| 55 | |||
| 56 | 0.4.9 |
||
| 57 | ----------------------- |
||
| 58 | * Add UMD support (AMD, CommonJS, browser globals) |
||
| 59 | * Add retina support |
||
| 60 | * FitZoom only use visible markers |
||
| 61 | |||
| 62 | 0.4.8 |
||
| 63 | ----------------------- |
||
| 64 | * Fix getRoutes |
||
| 65 | |||
| 66 | 0.4.7 |
||
| 67 | ----------------------- |
||
| 68 | * Add callback for failure in getRoutes |
||
| 69 | * Update marker clusterer after remove marker |
||
| 70 | * Add support for string arrays to arrayToLatLng |
||
| 71 | |||
| 72 | 0.4.6 |
||
| 73 | ----------------------- |
||
| 74 | * Allow initialising GMaps without new |
||
| 75 | * Added styled map support for static maps |
||
| 76 | * Fixed name display for styled maps |
||
| 77 | * Allow no zoom for static map request |
||
| 78 | |||
| 79 | 0.4.5 |
||
| 80 | ----------------------- |
||
| 81 | * Fix IE8 bug using array_map |
||
| 82 | * Add Grunt and Bower support |
||
| 83 | |||
| 84 | 0.4.4 |
||
| 85 | ----------------------- |
||
| 86 | * Fix buildContextMenu reference in addMarker |
||
| 87 | |||
| 88 | 0.4.3 |
||
| 89 | ----------------------- |
||
| 90 | * Fix removePolylines and removePolygons |
||
| 91 | |||
| 92 | 0.4.2 |
||
| 93 | ----------------------- |
||
| 94 | * Fix drawSteppedRoute |
||
| 95 | |||
| 96 | 0.4.1 |
||
| 97 | ----------------------- |
||
| 98 | * Fix fitZoom |
||
| 99 | |||
| 100 | 0.4.0 |
||
| 101 | ----------------------- |
||
| 102 | * Split gmaps.js in modules |
||
| 103 | |||
| 104 | 0.3.5 |
||
| 105 | ----------------------- |
||
| 106 | * Enable new Google Maps style |
||
| 107 | |||
| 108 | 0.3.4 |
||
| 109 | ----------------------- |
||
| 110 | * Add support for context menu in multiple maps |
||
| 111 | |||
| 112 | 0.3.3 |
||
| 113 | ----------------------- |
||
| 114 | * Fix destination as address in getRoutes |
||
| 115 | |||
| 116 | 0.3.2 |
||
| 117 | ----------------------- |
||
| 118 | * Support for removing Fusion Tables and GeoRSS/KML layers with removeLayer |
||
| 119 | |||
| 120 | 0.3.1 |
||
| 121 | ----------------------- |
||
| 122 | * Improve event binding at adding markers, polylines or polygons |
||
| 123 | |||
| 124 | 0.3 |
||
| 125 | ----------------------- |
||
| 126 | * Add native events to google.maps objects and custom events to GMaps maps |
||
| 127 | * Check for Google Maps library and defined element when initialize |
||
| 128 | * Allow route origins to be a string or array |
||
| 129 | |||
| 130 | 0.2.31 |
||
| 131 | ----------------------- |
||
| 132 | * Fix context menu position bug |
||
| 133 | |||
| 134 | 0.2.30 |
||
| 135 | ----------------------- |
||
| 136 | * New feature: StreetView Panoramas |
||
| 137 | |||
| 138 | 0.2.29 |
||
| 139 | ----------------------- |
||
| 140 | * New methods: removePolyline and removePolygon |
||
| 141 | * Tests for Styled MapTypes |
||
| 142 | |||
| 143 | 0.2.28 |
||
| 144 | ----------------------- |
||
| 145 | * Test suite |
||
| 146 | * Fix double event firing bug |
||
| 147 | |||
| 148 | 0.2.27 |
||
| 149 | ----------------------- |
||
| 150 | * Allow create context menus for markers |
||
| 151 | |||
| 152 | 0.2.26 |
||
| 153 | ----------------------- |
||
| 154 | * Fix bug in getElevations |
||
| 155 | * Rename fitBounds to fitLatLngBounds |
||
| 156 | |||
| 157 | 0.2.25 |
||
| 158 | ----------------------- |
||
| 159 | * Support for GeoJSON in drawPolygon |
||
| 160 | * Use 'complete' instead of 'always' in GMaps.geolocate |
||
| 161 | |||
| 162 | 0.2.24 |
||
| 163 | ----------------------- |
||
| 164 | * New feature: **Overlay Map Types** |
||
| 165 | |||
| 166 | 0.2.23 |
||
| 167 | ----------------------- |
||
| 168 | * Add full support to google.maps.PolylineOptions |
||
| 169 | * New method: removeMarker |
||
| 170 | |||
| 171 | 0.2.22 |
||
| 172 | ----------------------- |
||
| 173 | * New feature: **Map Types** |
||
| 174 | |||
| 175 | 0.2.21 |
||
| 176 | ----------------------- |
||
| 177 | * Support to add google.maps.Marker objects in addMarker and addMarkers methods. |
||
| 178 | |||
| 179 | 0.2.20 |
||
| 180 | ----------------------- |
||
| 181 | * Add support for other HTML block elements instead "div" (like "section"). |
||
| 182 | |||
| 183 | 0.2.19 |
||
| 184 | ----------------------- |
||
| 185 | * Use MarkerClusterer to group markers |
||
| 186 | |||
| 187 | 0.2.18 |
||
| 188 | ----------------------- |
||
| 189 | * Check if GMaps is defined before load extensions |
||
| 190 | |||
| 191 | 0.2.17 |
||
| 192 | ----------------------- |
||
| 193 | * Fix bug with disableDefaultUI option in constructor |
||
| 194 | |||
| 195 | 0.2.16 |
||
| 196 | ----------------------- |
||
| 197 | * Fix another bug in createMarker |
||
| 198 | |||
| 199 | 0.2.15 |
||
| 200 | ----------------------- |
||
| 201 | * Fix bug in createMarker |
||
| 202 | |||
| 203 | 0.2.14 |
||
| 204 | ----------------------- |
||
| 205 | * Adding IDs, classes and innerHTML to createControl. (**Note**: Use 'content' instead 'text' in createControl) |
||
| 206 | |||
| 207 | 0.2.13 |
||
| 208 | ----------------------- |
||
| 209 | * Add support for Places library in addLayer |
||
| 210 | |||
| 211 | 0.2.12 |
||
| 212 | ----------------------- |
||
| 213 | * Fix map events without MouseEvent object |
||
| 214 | * Fix bug in drawCircle and drawRectangle |
||
| 215 | * Fix bug in zoomIn and zoomOut |
||
| 216 | * New methods: removePolygon and removePolygons |
||
| 217 | |||
| 218 | 0.2.11 |
||
| 219 | ----------------------- |
||
| 220 | * Add support to Panoramio in addLayer |
||
| 221 | |||
| 222 | 0.2.10 |
||
| 223 | ----------------------- |
||
| 224 | * New method: toImage |
||
| 225 | |||
| 226 | 0.2.9 |
||
| 227 | ----------------------- |
||
| 228 | * Extend the drawSteppedRoute and travelRoute functions |
||
| 229 | |||
| 230 | 0.2.8 |
||
| 231 | ----------------------- |
||
| 232 | * New feature: **Layers** |
||
| 233 | |||
| 234 | 0.2.7 |
||
| 235 | ----------------------- |
||
| 236 | * New method: removeRoutes |
||
| 237 | * Access all native methods of google.maps.Map class |
||
| 238 | |||
| 239 | 0.2.6 |
||
| 240 | ----------------------- |
||
| 241 | * Support for multiple overlays |
||
| 242 | |||
| 243 | 0.2.5 |
||
| 244 | ----------------------- |
||
| 245 | * Add support to all marker events |
||
| 246 | * Add suport for animations at show and remove overlays |
||
| 247 | |||
| 248 | 0.2.4.1 |
||
| 249 | ----------------------- |
||
| 250 | * Create GMaps class only when Google Maps API is loaded |
||
| 251 | |||
| 252 | 0.2.4 |
||
| 253 | ----------------------- |
||
| 254 | * New feature: **Elevation service** |
||
| 255 | |||
| 256 | 0.2.3 |
||
| 257 | ----------------------- |
||
| 258 | * New method: getZoom |
||
| 259 | |||
| 260 | 0.2.2 |
||
| 261 | ----------------------- |
||
| 262 | * Minor improvements to support Backbone.js |
||
| 263 | * Fix controls position |
||
| 264 | |||
| 265 | 0.2.1 |
||
| 266 | ----------------------- |
||
| 267 | * More default values in GMaps constructor. |
||
| 268 | |||
| 269 | 0.2 |
||
| 270 | ----------------------- |
||
| 271 | * Remove jQuery dependency. |
||
| 272 | |||
| 273 | 0.1.12.5 |
||
| 274 | ----------------------- |
||
| 275 | * New method "removePolylines" and alias "cleanRoute" |
||
| 276 | |||
| 277 | 0.1.12.4 |
||
| 278 | ----------------------- |
||
| 279 | * New methods: fitZoom and fitBounds |
||
| 280 | |||
| 281 | 0.1.12.3 |
||
| 282 | ----------------------- |
||
| 283 | * New method: refresh |
||
| 284 | |||
| 285 | 0.1.12.2 |
||
| 286 | ----------------------- |
||
| 287 | * New options in GMaps constructor: width and height |
||
| 288 | |||
| 289 | 0.1.12.1 |
||
| 290 | ----------------------- |
||
| 291 | * New methods: loadFromFusionTables and loadFromKML |
||
| 292 | |||
| 293 | 0.1.12 |
||
| 294 | ----------------------- |
||
| 295 | * New feature: **KML and GeoRSS** |
||
| 296 | * Fix bug in getFromFusionTables |
||
| 297 | |||
| 298 | 0.1.11 |
||
| 299 | ----------------------- |
||
| 300 | * New feature: **Fusion Tables** |
||
| 301 | |||
| 302 | 0.1.10 |
||
| 303 | ----------------------- |
||
| 304 | * New feature: **Custom controls** |
||
| 305 | |||
| 306 | 0.1.9 |
||
| 307 | ----------------------- |
||
| 308 | * New feature: **Static maps** |
||
| 309 | |||
| 310 | 0.1.8.10 |
||
| 311 | ----------------------- |
||
| 312 | * Better GMaps.Route methods |
||
| 313 | |||
| 314 | 0.1.8.9 |
||
| 315 | ----------------------- |
||
| 316 | * Fix typo in Polyline events |
||
| 317 | * Add InfoWindow events |
||
| 318 | |||
| 319 | 0.1.8.8 |
||
| 320 | ----------------------- |
||
| 321 | * Add Polyline events |
||
| 322 | |||
| 323 | 0.1.8.7 |
||
| 324 | ----------------------- |
||
| 325 | * Add drag and dragstart events to Marker |
||
| 326 | |||
| 327 | 0.1.8.6 |
||
| 328 | ----------------------- |
||
| 329 | * Add avoidHighways, avoidTolls, optimizeWaypoints, unitSystem and waypoints options in getRoutes |
||
| 330 | * New method: createMarker |
||
| 331 | |||
| 332 | 0.1.8.5 |
||
| 333 | ----------------------- |
||
| 334 | * geolocation and geocode methods are static now (using them with GMaps.geolocation and GMaps.geocode) |
||
| 335 | |||
| 336 | 0.1.8.4 |
||
| 337 | ----------------------- |
||
| 338 | * Fix typo in geocode method |
||
| 339 | * Allow all MapOptions in constructor (see 'MapOptions' section in Google Maps API Reference) |
||
| 340 | |||
| 341 | 0.1.8.3 |
||
| 342 | ----------------------- |
||
| 343 | * Add pane option ('floatPane', 'floatShadow', 'mapPane', 'overlayImage', 'overlayLayer', 'overlayMouseTarget', 'overlayShadow') in drawOverlay |
||
| 344 | * New methods: removeOverlay and removeOverlays |
||
| 345 | |||
| 346 | 0.1.8.2 |
||
| 347 | ----------------------- |
||
| 348 | * Change pane ('floatPane' to 'overlayLayer') in drawOverlay |
||
| 349 | |||
| 350 | 0.1.8.1 |
||
| 351 | ----------------------- |
||
| 352 | * Fix bug in drawCircle |
||
| 353 | |||
| 354 | 0.1.8 |
||
| 355 | ----------------------- |
||
| 356 | * New feature: **Overlays** |
||
| 357 | * New method: drawCircle |
||
| 358 | |||
| 359 | 0.1.7.1 |
||
| 360 | ----------------------- |
||
| 361 | * Bug fix: zoomIn/zoomOut can change zoom by argument |
||
| 362 | * New method: setZoom |
||
| 363 | |||
| 364 | 0.1.7 |
||
| 365 | ----------------------- |
||
| 366 | * New class: **GMaps.Route** |
||
| 367 | |||
| 368 | 0.1.6 |
||
| 369 | ----------------------- |
||
| 370 | * New feature: **Geofence** (with markers) |
||
| 371 | * New method: **drawPolygon** |
||
| 372 | * Bug fix: Change reserved word in Context menu |
||
| 373 | |||
| 374 | 0.1.5 |
||
| 375 | ----------------------- |
||
| 376 | * New feature: **Geocoding** |
||
| 377 | * New method: **drawSteppedRoute** (similar to travelRoute) |
||
| 378 | |||
| 379 | 0.1.4 |
||
| 380 | ----------------------- |
||
| 381 | * New events in **addMarker** |
||
| 382 | * Add step_number property in **travelRoute** method |
||
| 383 | |||
| 384 | 0.1.3 |
||
| 385 | ----------------------- |
||
| 386 | * New feature: **Context menu** (for map and marker only) |
||
| 387 | * New method: **travelRoute** |
||
| 388 | * Change setCenter to panTo in GMaps **setCenter** method |
||
| 389 | * Save entire route data in routes array (instead saving only route path) |
||
| 390 | * Context menu and Route example (using **travelRoute**) |
||
| 391 | |||
| 392 | 0.1.2 |
||
| 393 | ----------------------- |
||
| 394 | * **drawPolyline** can accept both an array of LatLng objets or an array of coordinates |
||
| 395 | * New methods: **getRoutes** and **drawRoute** |
||
| 396 | * Route example |
||
| 397 | |||
| 398 | 0.1.1 |
||
| 399 | ----------------------- |
||
| 400 | * Rename **drawRoute** method to **drawPolyline** (more accurate) |
||
| 401 | * Marker example |
||
| 402 | |||
| 403 | 0.1 - Initial release |
||
| 404 | ----------------------- |
||
| 405 | * Map events |
||
| 406 | * Geolocation |
||
| 407 | * Add Markers |
||
| 408 | * Marker infoWindows |
||
| 409 | * Draw routes and circles |
||
| 410 | * Initial examples |
||
| 411 | |||
| 412 | License |
||
| 413 | --------- |
||
| 414 | MIT License. Copyright 2014 Gustavo Leon. http://github.com/hpneo |
||
| 415 | |||
| 416 | Permission is hereby granted, free of charge, to any |
||
| 417 | person obtaining a copy of this software and associated |
||
| 418 | documentation files (the "Software"), to deal in the |
||
| 419 | Software without restriction, including without limitation |
||
| 420 | the rights to use, copy, modify, merge, publish, |
||
| 421 | distribute, sublicense, and/or sell copies of the |
||
| 422 | Software, and to permit persons to whom the Software is |
||
| 423 | furnished to do so, subject to the following conditions: |
||
| 424 | |||
| 425 | The above copyright notice and this permission notice |
||
| 426 | shall be included in all copies or substantial portions of |
||
| 427 | the Software. |
||
| 428 | |||
| 429 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY |
||
| 430 | KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE |
||
| 431 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
||
| 432 | PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS |
||
| 433 | OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
||
| 434 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
||
| 435 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||
| 436 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |