User:Tonestertm/CRS grid bookmarklet

From Wazeopedia

< User:Tonestertm

Revision as of 20:25, 12 November 2015 by Tonestertm (talk | contribs) (Begin: v. 0.1)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is version 0.1 of a bookmarklet (my very first javascript code "from scratch" :) ) which will take the coordinates from the center of your screen and find the appropriate CRS Grid map. With this version, I'm primarily looking for feedback as to whether it's working properly, and whether the intermediate step (first alert popup) is really necessary. Ultimately, I expect to put this in the CA Wiki as a resource.

Round 2 will include some rough boundary checking, to be sure you're in California, as the state hasn't been magnanimous enough to provide FC maps for OR, NV, AZ or MX.

Also, I can currently link directly to the particular pdf map, but haven't figured how to account for areas where there is no "minor grid" map. In addition, the decision to leave the table as a clunky-looking full-size tab was deliberate, owing to the idea that you may need to access an adjacent map; this seems to me easier than the state's approach, where the tiny window disappears behind the main browser window, but I'm interested in others' thoughts. Feedback will be appreciated.