History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GM-6
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: David Whiterod
Votes: 0
Watchers: 1
Operations

Go to Planning board
If you were logged in you would be able to see more operations.
Google Maps

[CODE INCULDED] GoogleMap custom tag and additional goodies (includes improvements suggested in GM-2,4 and 5 in one bundle)

Created: 19/Nov/07 04:58 PM   Updated: 28/May/08 05:57 PM
Component/s: Formtools, Map API, Webskins, Admin UI
Affects Version/s: 1.0.0
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive googleMaps.zip (55 kb)
2. Zip Archive googleMaps.zip (55 kb)
3. Zip Archive googleMaps_20071221.zip (73 kb)
4. Zip Archive googleMaps_20080104.zip (72 kb)
5. Zip Archive googleMaps_nosvn_20080109.zip (26 kb)
6. Zip Archive googleMaps_nosvn_20080109_directions.zip (27 kb)
7. Zip Archive googleMaps_nosvn_20080122_googleEarth.zip (31 kb)
8. Zip Archive googleMaps_nosvn_20080123_case.zip (31 kb)
9. Zip Archive googleMaps_nosvn_20080528_icons.zip (99 kb)



 Description  « Hide
Along with the enhancements in GM-2, GM-4 and GM-5 mods include:

Update to v2.x of the GMaps API (ie. http://maps.google.com/maps?file=api&v=2.x)
Packaging of GM-5 to use a custom tag (Use Case: very useful when other, non-GoogleMap, custom types contain an array of googleLocations)
GoogleMap type contains two new properties:
  mapType: Set the default map type 'hybrid/satellite/map'
  bDisplayInfoWindow: Flag to display the information (bubble) window in Google Maps (Use Case: hide info pop-ups when using small - pixel - sized maps)
Google API key: No need for an additional GM key (apiKeyFarcryConjuror - as per GM-2) - the site's standard key works now (may be related to the update of the GM API)
Both Formtools use the cracking little skin:htmlHead tag to ensure that the googlemap API is only loaded once.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
David Whiterod - 19/Nov/07 05:00 PM
Code attached

David Whiterod - 21/Dec/07 05:10 PM
Updated ZIP file

Additions:
Added Google's new G_PHYSICAL_MAP (Relief) map option
Cleaned up displayMap custom tag code
Added Marker list option: displays a list of the markers on a map with the ability to pan to them
Added option to display scale control: KMs/Miles scalebar

David Whiterod - 04/Jan/08 06:00 PM
Heaps-o-changes!

* packages\formtools\LatLong.cfc *
Placed utility JavaScript into the HTML head (via skin:htmlHead)
Better usability for 'Find Marker' and 'Move marker to map centre' functions
Formatting

* packages\formtools\geoAddress.cfc *
Excellent ;-) improvements to geocode handling:
  - Provides a list of locations from which to choose (if more than one result)
  - Better status/error notification
  - Once geocoded your address will be updated to Google's fully formatted address style
Formatting
  
* packages\types\googleMap.cfc *
----> [COAPI updates required] <----
Re-ording of cfproperties (inc. changes to group like options)
Added a number of other Miscellaneous Google Map options (all default to false/disabled)
  - bEnableGoogleBar: Flag to indicate to display the GoogleBar
  - bEnableScrollWheelZoom: Flag to indicate to zooming via the mouse scroll wheel
  - bEnableContinuousZoom: Flag to indicate to enable ContinuousZoom
  - bEnableDoubleClickZoom: Flag to indicate to enable DoubleClickZoom
  - bEnableGKeyboardHandler: Navigate a map viw the keyboard
  - bDisplayScaleControl: Ability to add the map scalebar control to a map.
New option to include a marker/location list (this allows users to click from a list of all markers on a map and pan to that location.
New option to control the style of the map type control (normal, menu/drop-down and the new heirachical format
Added support for Google's new G_PHYSICAL_MAP (Relief) map type
Formatting

* packages\types\googleMapLocation.cfc *
Formatting

* tags\displayMap.cfm *
Changes to handle all changes above
Clean-up and streamlining of the JavaScript
Uses the latLong field in prefenence to the address field (NB: changing the address field will automatically update the latLong value)
Now allows the ability to specify the size (small, large) of all map controls
Formatting

David Whiterod - 09/Jan/08 02:42 PM
Added 'Export to KML' Scheduled Task (uses a collection of generic custom tags to create the XML) [Could be re-written when XML exports can be processed with XSLT - FC-641 or if scheduled tasks can be extented to allow parameter setup via FTs]
Added @@displaynames for GoogleMap display templates
googleMapLocation.cfc: Corrected icon handling
bShowEarthLink: Added bShowGoogleEarthLink (not yet implemented)
packages/rules/ruleGoogleMap.cfc: Updated intro to use the richtext formtool
Updated webskin/ruleGoogleMap/* to current GoogleMap SVN head

David Whiterod - 09/Jan/08 02:46 PM
Due to the amount of modification we are doing to the googleMaps plugin we have added it to our local SVN.

Previous ZIPs would have contains .svn folders point to our SVN server.

These folders have been removed from the last ZIP (googleMaps_nosvn_20080109.zip) so now it should be just an easy drop into your existing plugins/googleMaps folder

Geoff Bowers - 09/Jan/08 02:57 PM
Dave, Love to see what you guys are doing here. Would you like write access to the GoogleMaps plugin repository so you can update directly? Just let me know. Plus would be good to have you as a developer under the bug database so you can raise and close your own tickets -- makes the release notes all pretty. Again let me know :)

David Whiterod - 09/Jan/08 06:02 PM
Added driving directions functionality (bShowDirectionsLink) COAPI update required

Note: directions and associated forms are contained with divs with the following classes (for styling etc):
gm-directions-form: First to/from choice panel
gm-directions-from: Start address panel
gm-directions-to: End address panel

David Whiterod - 22/Jan/08 06:16 PM
Added 'Link to Google Earth' functionality (***requires 'googleMaps' virtual directory***)
Moved whitespace removal into tags/KMLFile.cfm
Added more id and class hooks into HTML
Added example CSS (in www/css)

David Whiterod - 23/Jan/08 11:15 AM
Attempt to fix case issue in GM-7.

Standardised on camelCase naming (googleMap/googleMapLocation)
Rename plugin XL also using camelCase

David Whiterod - 28/May/08 05:57 PM
A quick update to (attempt to) keep this forked version of the plugin up-to-date with recent changes in the core GM codebase (added install folder).

Also added icons and additional metadata on the types to make use of FarCry's neat new ability to show summary screens for types.