Powered by Invision Power Board


Pages: (2) [1] 2  ( Go to first unread post ) Closed TopicStart new topicStart Poll

> Google Map V3, High Speed Google map macro
lignumaquaGC Profile
Posted: January 18, 2011 10:09 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 1.3 - Google Map V3.gsk 1-17-2011

First full release - now GMaps V3 API is out of Beta and V2 is deprecated it was time to formally release this macro.

This macro is a high speed Google maps mapping macro for large numbers of geocaches, perhaps entire databases.

The previous solutions ('Google Maps with clusters', "MyGME' etc) all have to iterate through the database creating the map markers which is a fairly slow process. Instead this macro uses SQLite and the newest V3 version of the Google Maps API. No iteration is required, instead the javascript for the markers and info windows are generated directly by a couple of, albeit fairly complex, SQLite queries. On my system, it takes no more than 50 milliseconds to generate the data and less than a second for a map with 2,500 caches to appear in the browser! smile.gif

Just run the macro and it will generate a Google Map of the current view in GSAK, respecting any filters that are set, and display it in your browser.

It also uses a new Clusterer system which dynamically adjusts the number of icons shown on the map at any one time. At wider zoom levels markers that would overlap are combined into single large markers with a number indicating how many caches are combined. Click on one of these markers and the map will automatically zoom in to that cluster.

user posted image

As an experiment I generated 10,000 caches randomly spread across the world and then plotted them using this macro. GSAK took around half a second (maybe less) to generate the file and then it took the browsers this long to render it:

Firefox v3.6.3: 8 seconds
IE 8: 8 seconds
Opera: 5 seconds
Chrome v5.0.342.9: 3 seconds! smile.gif

(Not too surprising - Google maps on Google Chrome ought to be the best)

user posted image


Cache Icons
Clicking a cache icon will bring up an info window with basic cache details and three links - 'View' and 'Flag' and user posted image.

user posted image

Clicking the first two links will show the selected cache in the GSAK grid, and set the User Flag for that cache respectively

Clicking the user posted image icon will increment the User Sort value of the selected cache by the currently set increment amount - equivalent to double-clicking the User Sort value in the GSAK grid.


Found Caches
There are distinct icons for 'Found' caches

user posted image


Options
There is an options dialog which is accessed by holding down the SHIFT key on your keyboard when you run the macro:

user posted image

Note that these options *only* apply for this run of the macro. If you run it without holding down SHIFT then all options default to off.


'Street View' option

user posted image

The cache icons are visible in Street View and can give you a very good idea of cache position.

user posted image

Click the 'X' in the top right of the Street View window to close it and return to normal map operation.


Map Types

Supports multiple map types:

user posted image

(British Ordnance Survey is new in this release)


Updated - Please Scroll Down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: January 21, 2011 10:04 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 1.4 - Google Map V3.gsk 1-20-2011

1. Moved all files to new gsak.net server
An invisible but necessary change.

2. Sticky options for Scroll Zoom and Silent operation.

The existing options accessible by holding down the SHIFT key on your keyboard when you run the macro are deliberately *only* applied when the macro is run in this manner, and don't affect normal running. This release adds two new options which will *always* apply:

user posted image

1. 'Use Scroll Wheel Zoom' enables the use of the scroll wheel to zoom in and out. Use this with care, it can cause very slow operation with older browsers such as IE7 or when text labels are enabled. (It's also horrible to use IMHO! smile.gif )

2. 'Keep Map Focus' applies to the 'Set Flag' and 'Increment User Sort' icons in the info window. With the option enabled clicking those icons will not lose focus on the Google map back to GSAK, instead the action will happen 'behind the scenes'.



3. Drag and Zoom

Drag and Zoom is now enabled either by using Shift-click-drag on the map or through the icon below the zoom bar.

user posted image

Either method allows you to drag a zoom box on the map.

(354)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: February 20, 2011 01:19 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 1.5 - Google Map V3.gsk 2-19-2011

1. Corrected Coordinates

New indicator for caches that have corrected coordinates

user posted image user posted image user posted image

2. Speed tweaks


(258)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: March 13, 2011 05:02 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 1.6 - Google Map V3.gsk 3-12-2011

Work-around for this GMaps bug that broke the cache labels option.


(305)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: April 07, 2011 02:47 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 1.7 - Google Map V3.gsk 4-6-2011

1. Added parent cache name as a prefix to the tooltip for child waypoints.

user posted image


(343)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: May 07, 2011 11:49 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 1.8 - Google Map V3.gsk 5-6-2011

1. Option to use 'Name', 'Code' or 'Smartname' for label text in three different text sizes, small, medium or large.


user posted image


user posted image user posted image user posted image


(185)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: May 19, 2011 07:38 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 1.9 - Google Map V3.gsk 5-18-2011

1. Added the 'Hike and Bike' map type as suggested by JR.on.tour here

(This is another rendering of the OpenStreetMap data already included, but includes different icons and POIs)


(70)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: May 21, 2011 07:42 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 2.0 - Google Map V3.gsk 5-20-2011

Fix for bug when the '\' character is used in a cache name. (Also preemptively now checked for in owner name)


(566)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: July 19, 2011 08:16 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 2.1 - Google Map V3.gsk 7-18-2011

Requires GSAK V7.7.4.28 or later, available here.


1. Add 'Placed' date to event cache info windows
This is actually the event date for Events, CITO and Mega Event caches

user posted image


2. Add 'Found' date to info window for any found caches

user posted image


Note: In both cases the date will be formatted to match your Windows date preference. Thanks to Clyde for adding the g_DateFormat() SQLite command to do this! smile.gif


(429)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: August 13, 2011 05:22 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 2.2 - Google Map V3.gsk 8-12-2011

Requires GSAK V7.7.4.28 or later.

1. Fix for GC.com API sending Final Waypoints with blank coordinates.


(415)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: September 19, 2011 04:56 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 2.3 - Google Map V3.gsk 9-18-2011

Requires GSAK V7.7.4.28 or later.

1. Added support for Groundspeak HQ and 10 Year Event cache icons now available through API.

user posted image user posted image

(713)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: December 04, 2011 02:27 pm
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 2.5 - Google Map V3.gsk 12-4-2011

Requires GSAK V7.7.4.28 or later.

1. Complete rewrite of label code

a. Labels now properly respect clustering and will show/hide with the associated marker
(A Google change broke this some months ago. It took a total change in the way labels are created to fix. But the new code is much more flexible than the old! smile.gif)

b. Labels are much quicker to display

c. Labels support additional GSAK fields

user posted image

Enter any legal SQLite GSAK fieldnames (including custom fields) as a comma separated list in the 'Additional Field' box and they will be added to the end of the label.

For example, selecting 'Name' and 'Large', and then entering 'favpoints, county, code' in the 'Additional Fields' box will produce this label:

user posted image

The code checks that the names you aenter are legal field names, and will warn you if they aren't.


2. Added Fav Points to InfoWindow

user posted image


(55)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: December 05, 2011 02:57 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 2.6 - Google Map V3.gsk 12-4-2011

Requires GSAK V7.7.4.28 or later.

1. Quick fix for IE

Tested in IE7, IE8, IE9 and IE10. Now uses HTML5 Doctype so should be good going forwards with all modern browsers.
Not recommended with IE7. IE 7 is a hack so the labels display, but not in the same way and IE7 is painfully slow...


2. Added support for map type storage in Chrome

Map types are now 'sticky' in Chrome, as they already were with other browsers. Chrome uses local storage instead of cookies


3. Child Waypoints have labels

Something I forgot to mention before - If you choose to show Child Waypoints, they now also have labels.

user posted image


(105)
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: December 09, 2011 09:23 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 2.7 - Google Map V3.gsk 12-8-2011

Requires GSAK V7.7.4.28 or later.

1. Use and display of Favpoints now conditional on GSAK version
The macro will now also run in V7 of GSAK, without favpoints showing in the InfoWindow.

Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: December 11, 2011 12:58 pm
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V 2.8 - Google Map V3.gsk 12-10-2011

Requires GSAK V7.7.4.28 or later.

1. All options are now sticky and apply for every run of the macro.
Options form has been re-designed to accommodate this change:

user posted image

Note: You must press <SHIFT> when running the macro to access the options.


2. Added name of parent cache to child label.


Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: January 10, 2012 08:42 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V2.9 - Google Map V3.gsk 1-9-12

Requires GSAK V7.7.4.28 or later.

1. New MyTopo maps.
Uses new secure access MyTopo maps


2. Unavailable/archived information in Info Window
Any caches that are disabled or archived have relevant text in the Info Window:

user posted image


3. Child icons bug fixed.


4. Child icon type check now case insensitive


Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: February 15, 2012 09:01 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V3.0 - Google Map V3.gsk 2-14-12

Requires GSAK V7.7.4.28 or later.

1. Strip out CR and LF from cache name.

Apparently Munzees allow line feeds in cache names. This seems like a really bad idea as it will cause unforeseen circumstances. This is one of them... rolleyes.gif

Macro now strips them out before using them in the map.

Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: February 16, 2012 10:31 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V3.1 - Google Map V3.gsk 2-15-12

Requires GSAK V7.7.4.28 or later.

1. *New* Grid size can be changed through right-click menu

The grid size used for clustering can now be changed through the right-click menu on the map.

user posted image

The larger the grid size, the quicker the map will operate, but the clusters are larger. Conversely a smaller grid size will give you smaller clusters, but slower operation. Your choice. For example:

Grid size 100
user posted image

Grid size 20
user posted image

The map will always default to a grid size of 50 on first loading.


Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: February 18, 2012 12:34 pm
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V3.2 - Google Map V3.gsk 2-17-12

Requires GSAK V7.7.4.28 or later.

1. Indicator for archived/unavailable

user posted image

(Uses an overlay icon, which is hidden from the clusterer so the count remains correct.)


2. Performance improvement

Improved version of the clustering script


3. Javascript now loaded from file
The embedded javascript was getting large and unwieldy which made it difficult to debug. Now loaded from a separate file.

[1773]
Updated - Please scroll down
PMEmail Poster
Top
lignumaquaGC Profile
Posted: August 31, 2012 07:39 am
Quote Post


Zen Master
*****

Group: Admin
Posts: 16590
Member No.: 989
Joined: April 10, 2006



V3.3 - Google Map V3.gsk 2-17-12

Requires GSAK V7.7.4.28 or later.

1. Fix - Handle backslash in child point names


[1629]
Updated - Please scroll down
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic OptionsPages: (2) [1] 2  Closed TopicStart new topicStart Poll

 



[ Script Execution time: 0.0176 ]   [ 12 queries used ]   [ GZIP Enabled ]