Extras catalogue
LocationResources
Latest release 6 years ago (November 27, 2019).
locationresources
About
LocationResources is a basic integration between the Google Maps API and MODX Resources.
It allows drag and drop in the MODX manager to position maps and set markers which is then reflected on the web context (or others).Installation & usage
LocationResources
=================
***Google Maps Custom Resource Class Extra for MODX Revolution***
LocationResources is a basic integration between the Google Maps API and MODX Resources.
It allows drag and drop in the MODX manager to position maps and set markers which is then reflected on the web context (or others).
27/11/2019 - **Version 1.4.0**
NEW - Usage with getResources
----
_Note: If you're not familiar with getResources, start with the "Normal Usage" instructions further below._
Make sure you have the getResources extra installed from the MODX package manager and your Google Maps API key is in the system settings.
Create your location resource(s).
Make a normal getResources snippet call and include your location resource(s).
For example if I have resource (id: 18) which is a parent and includes a list of location resources then I might call getResources like this:
```
```
Create a chunk called `myCustomTpl` or whatever you fancy.
Inside the chunk you can call the location values directly as placeholders with a `location_` prefix.
```
This chunk displays the values of this location resource.
- Latitude:
- Longitude:
- Zoom Level:
- Does the Map Have a Marker?:
- Marker Latitude:
- Marker Longitude:
- Marker Title:
- Marker Description:
- Marker Link (href):
- Marker Link Text :
At a glance
MODX 3 compatibility unknown. Based on our testing and community reports where available.
- Developer digitalpenguin
- Latest release November 27, 2019 (6 years ago)
- First seen in SiteDash November 27, 2019 (6 years ago)
- License GPLv2
- MODX support 2.3 – 100.0
| Changelog | |||
|---|---|---|---|
| MODX.com |
1.4.0-pl |
November 27, 2019
6 years ago |
|
|
Changelog for LocationResources.
LocationResources 1.4.0 (27/11/2019) ============== - Map values can now be accessed directly when using getResources! The fields can be used in a getResources tpl with the 'location_' prefix. - Thanks to @jako! - Updated readme. LocationResources 1.3.2 (18/08/2017) ============== - Fixed marker bug with quick create. - Removed all cluster code from output if not using clustering. - Fixed broken JS caused by /n and /r when using multiple lines for description - Fixed bug preventing map location to be set before initially saving resource. LocationResources 1.3.1 (11/08/2017) ============== - Fix pathing problem to cluster js file. LocationResources 1.3.0 (11/08/2017) ============== - Added marker cluster functionality to allow multiple markers on a single map. Values taken from selected LocationResources under specified parents. - Added &parents parameter that accepts a comma-separated list of resource ids with children containing markers. - Fixed lexicon values for creating via context menus in the resource tree. - Added checks to make sure profile record is populated with default values on create. - Changed marker description field to textarea to allow multi-line descriptions. (Kept same layout for now). LocationResources 1.2.1 (08/07/2017) ============== - Forces output of decimals to use dot notation. Some European locales were converting to commas and breaking the map. LocationResources 1.2.0 (07/07/2017) ============== - Revised layout in manager - Added geocoding functionality with a 'Find Address' search field. - Searching by address removes any current markers and adds a new marker at the found location. - Added a button that allows the user to centre the map to the marker if one has been added. LocationResources 1.1.2 (24/03/2017) ============== - Removed default values from xpdo schema. Default decimal values causing install errors when using a locale that uses commas instead. - 3 new system settings where map defaults are now stored. After install, the defaults can be set by the developer. - marker_link_test column added to database for future feature upgrade. LocationResources 1.1.1 (21/03/2017) ============== - Fixes div id generation for if the same map is called twice on a resource for some reason. LocationResources 1.1.0 (19/03/2017) ============== - Added serialisation to DIV so that map data can be loaded from other resources. This also allows multiple maps with snippets such as pdoTools or getResources. - Updated documentation - Added ID to error reports. - Added namespaced placeholder for docid. - Added class_key sanity check. - Make maps responsively scale to center. Big thanks to @jcdm (Josh Curtis) for the above additions! - Some aesthetic changes to service class code. LocationResources 1.0.1 ============== - Fixed changing an existing standard resource into a Location Resource. - Fixed duplication of Location Resources. - Updated Lexicon text LocationResources 1.0.0 ============== - Initial release. |
|||
| MODX.com |
1.3.2-pl |
August 18, 2017
9 years ago |
— |
|
No matching releases. |
|||
We've also seen 8 unverified versions of LocationResources in use, but don't list those as we've been unable of confirming they are official releases from an official source.