Commit Graph

91 Commits

Author SHA1 Message Date
Michael Stenta 7361a17490 Allow other modules to perform logic when a map is rendered via hook_farm_map_view(). 2020-02-10 14:27:49 -05:00
Michael Stenta c0fa34f1ae Set the height of farmOS maps to 400px. 2020-02-10 14:27:49 -05:00
Michael Stenta fbda7e5d97 Render new farmOS-map element in farm_map_build(). 2020-02-10 14:27:49 -05:00
Michael Stenta 6bc7e9f22e Add new farm_map element type with theme function that renders a farmOS-map. 2020-02-10 14:27:49 -05:00
Michael Stenta 2bce9efc87 Implement hook_libraries_info() in farm_map.module to integrate farmOS-map library. 2020-02-10 14:27:49 -05:00
Michael Stenta ed5b5fa368 Make farm_map_set_bcscale() capable of maintaining scale even when it is used in nested functions without resetting prematurely. 2020-01-30 13:48:44 -05:00
Michael Stenta 58734b0f23 Explicitly set BCMath scale to 24 when performing geometry calculations, and reset afterwards. 2019-12-31 11:40:38 -05:00
Michael Stenta 2bd13f2e0e Rename farm_map_geofield_geometry_combine() to farm_map_combine_geoms(). 2019-12-31 11:40:38 -05:00
Michael Stenta 11c02e2ab8 Move farm_map geometry functions to an include file. 2019-12-31 11:40:38 -05:00
Michael Stenta 443535e710 Load GeoPHP in farm_map_polygon_area(). 2019-12-31 11:40:38 -05:00
Michael Stenta 8ecff7de26 Add the Google Maps API key to /farm.json. 2019-08-12 21:19:25 -04:00
Michael Stenta 72334e1991 Refactor other modules to use high-level access rules instead of explicit roles. 2018-12-27 10:42:37 -05:00
Michael Stenta 3e03174c61 Create an internal machine name for farm access roles. 2018-12-27 10:42:37 -05:00
Michael Stenta 371550f4a2 Update custom OLGeocoder control plugin to use BaseInterface instead of ObjectInterface. 2018-10-31 08:53:55 -04:00
Michael Stenta f01d00e23e Fix farm_map.info Features info. 2018-10-31 08:51:31 -04:00
Michael Stenta 8c4dc07182 Add address geocoder widget to other maps: geofield formatter, areas, assets. 2018-10-10 13:49:56 -04:00
Michael Stenta 461732abe0 Issue #2999087: Map address lookup 2018-09-12 20:58:53 -04:00
Michael Stenta 91cb17bb7f Allow other modules to help extract geometries from entities via hook_farm_map_entity_geometries(). 2018-05-30 15:30:19 -04:00
Michael Stenta 2b4df1054f Move KML geometry parsing functions from farm_area_import to farm_map_kml. 2018-05-30 13:59:51 -04:00
Michael Stenta 2ff620e49e Make a dedicated function for combining geometries. 2018-05-30 13:59:51 -04:00
Michael Stenta f2d5c7c336 Initial commit of new farm_map_kml module - provides a KML export action for farmOS geometry fields. 2018-05-30 13:59:51 -04:00
Michael Stenta 823a886ea9 Change all links to farmOS.org to https. 2018-05-05 22:56:47 -04:00
Michael Stenta 0c80fc3787 Fix geometry issue when moving an asset to multiple areas. 2018-04-23 17:00:55 -04:00
drupalgin 0e5a226627 Issue #2950316 by drupalgin: Fixed coding standards 2018-04-07 12:40:16 -04:00
Michael Stenta 4e20f1c843 Add the ability to wrap the map in a collapsible fieldset. 2018-02-26 21:27:22 -05:00
Michael Stenta 1006a3054b Add a farm_map_build() function, for building farm maps. 2018-02-26 21:27:22 -05:00
Michael Stenta e14a748d53 Issue #2929661: Fatal error reducing multiple GeometryCollections 2017-12-09 16:16:46 -05:00
Michael Stenta de4afa2111 Merge branch 'openlayers_update' into 7.x-1.x 2017-09-25 17:22:17 -04:00
Michael Stenta e760284e6c Minor comment fix. 2017-09-25 17:20:43 -04:00
Michael Stenta 0892b31ff3 Use ol4 branch of mstenta/openlayers to fix ZoomToSource Components. See https://www.drupal.org/node/2911611. 2017-09-25 17:19:29 -04:00
Michael Stenta 3243c5af92 Fix custom InlineJS styles. See https://www.drupal.org/node/2911566. 2017-09-25 17:19:15 -04:00
Michael Stenta d266d3df2f Reverse the order of all farmOS map layers, to undo change in Openlayers module. 2017-09-25 17:19:08 -04:00
Michael Stenta 04ced2c76b Ensure that the "base layers" group is always at the bottom of farm map layers. 2017-09-25 09:32:44 -04:00
Michael Stenta e73996df18 Small grammatical fix. 2017-09-04 13:50:15 -04:00
Michael Stenta c207e3ee2f Issue #2884947: Add a shortcut configuration form for Google Maps API key 2017-09-04 13:38:18 -04:00
Michael Stenta 6352fdf8eb Add OSM source and layer to info file. 2017-09-04 13:37:43 -04:00
Michael Stenta 503d05912f Clean up new variable on uninstall. 2017-09-04 13:07:03 -04:00
Michael Stenta 076b190e37 Issue #2772955: Add configuration for default map base layer 2017-09-04 13:06:12 -04:00
Michael Stenta 370e1fc778 Issue #2906648: Add openStreetMaps layer(s) 2017-09-04 12:34:37 -04:00
Michael Stenta a3ac05d10c Delete readme files from all the merged modules and farm_theme (except for some of farm_access/README.md, which is useful to keep). 2017-05-26 10:53:02 -04:00
Michael Stenta cd773d4efb Move to modules/farm/farm_map in preparation for #2876992. 2017-05-26 09:58:14 -04:00