Skip to content

Releases: Kelderic/mapstractor

v2.4.2

20 Mar 14:40
Compare
Choose a tag to compare

Bugfix release. Google changed the behavior of google.maps.event.trigger. It no longer works for focus, apparently.

v2.4.1

30 Jan 16:12
Compare
Choose a tag to compare

Bugfix release. If the searchbox is empty and the search button is clicked, it could have thrown a
JS error.

See details: 68b1aab

v2.4.0

12 Jun 19:27
Compare
Choose a tag to compare

This is a bugfix release. The autocomplete functionality changed to use a different Google data class, which fixes some long standing bugs. Additionally the repo has been reorganized to match typical practice, and make it easier to get a distributable version.

v2.3.0

11 Oct 18:02
Compare
Choose a tag to compare

This is an under the hood reorganization. The pseudo-class structure has been updated to best practice specs, with true private functions. Also removed all single-call functions. Most importantly, the searchbox logic has been abstracted into a private class.

There should be no changes to the API.

v2.2.0

10 Aug 16:36
Compare
Choose a tag to compare

Small update, some bugfixes and one new feature.

Changelog

Added:

  • Ability to set searchboxes up with a default value, and ability to specific if finding that default value should cause the placefoundCallback to run.

v2.1.0

08 Jun 14:23
Compare
Choose a tag to compare

Lots of small changes, some breaking. In general, it consisted of removing application specific logic, adding more customization options, and improving inline docs and variable names for clarity. I'm going to breakdown the changes into groups, but I'll link a full Github changeset at the end.

Changelog

Removed:

  • linkPlaceToPolygon() - This was a function which linked a place/marker to a polygon. Clicking a polygon would open it's linked place, showing marker and infobox. This is very application specific.
  • updateLocation() - This function added a marker to the map and then trigger a viewport change to center on that marker. Both addMarker and updateViewport are still available, so this function is really not necessary.
  • eventIsArtificial - This global variable was always a hack, and it wasn't necessary.

Added Ability to Send Custom Callbacks

  • addMarker()
  • addPolygon()

Improved Inline Docs

  • Nearly every function

Added

  • getControlWrap() - This function is a wrapper to retrieve the specified controls wrapper element.
  • clearInfoboxes() - New function to clear all infoboxes, see 3rd item under Changed for context details
  • Styles: select Elements

Changed

  • The way customizing the default marker icons is handled. The global parameter now just specifies the new default. Anytime addMarker() is called, it will use the default that is specificed in global init parameters. However, it can be overidden in the addMarker() parameters.
  • Improved parameter validation in global init function.
  • Infobox handling: Infoboxes are now tracked globally the same way as markers. Each marker object now has a prototype function to open it's infobox content if it has infobox content. There is a global clearInfoboxes function as well, to match the clearMarkers function.
  • Misc bugfixes, see full changeset for details:

Full 2.0.0 to 2.1.0 Changeset

v2.0.0

27 May 13:51
Compare
Choose a tag to compare

The Big 2.0

Lots of breaking change here, but since no one but me is using this, that's okay. For posterity though, here's a changelog:

  • Added inline docs for every function, explaining the function purpose and every parameter coming in.
  • Switched all public functions to use a single parameters object, rather than multiple parameters. Named object properties are basically inline self labels.
  • Removed remnant application specific logic.
  • Created a new factory function for creating DOM elements, switched all element creation to use it.
  • Extended gMap polygon object to add a function that returns the geographic center of the polygon.
  • Switched from double quotations to single quotations throughout script for consistancy.
  • Removed searching limitations. Previously there were limits on country (US), and input type (Regions).
  • Renamed many/most of the functions and many variables for logic. THESE ARE BREAKING CHANGES!

v1.1.2

18 May 18:13
Compare
Choose a tag to compare

Bugfix: Change Overlay to Position Absolute Instead of Fixed

v1.1.1

18 May 18:08
Compare
Choose a tag to compare

Bugfix: Removed styles that were affecting the body and html elements. This was a remnant from when the map was meant to be full-page.

v1.1.0

18 May 17:42
Compare
Choose a tag to compare

The "No need to hardcode lots of things" release. Previously, control wrapper areas and controls all had to be hard coded to the page. Now all UI elements are created by the script. The user has control over which ones are created, via .addX() functions.

Additionally, the map now works perfectly when it's just a portion of the webpage. Previously it was intended only for full-screen usage.