Releases: Kelderic/mapstractor
v2.4.2
v2.4.1
v2.4.0
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
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
v2.1.0
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:
v2.0.0
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
v1.1.1
v1.1.0
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.