Package: collective.geo.mapwidget
Introductioncollective.geo.mapwidget provides some handy page macros and adapters to easily manage
multiple maps on one page.Found a bug? Please, use theissue tracker.Table of contentsIntroductionRequirementsInstallationUpgradingContributorsChangelog3.1 (2019-01-23)3.0 (2019-01-22)2.3 (2015-11-17)2.2 (2015-05-02)2.1.3 (2014-08-16)2.1.2 (2014-03-16)2.1.1 (2014-02-26)2.1 (2014-02-26)2.0 (2013-10-29)2.0b1 (2013-06-02)1.6 (2013-01-29)1.5 (2012-02-11)0.1.4 (2011-09-05)0.1.3 (2011-02-20)0.1.2 (2010-12-28)0.1.1 (2010-11-13)0.1 (2010-10-31)Requirementsgeopy >= 0.98Plone>= 4.2plone.app.z3cformcollective.z3cform.colorpicker>= 1.2collective.geo.openlayers>= 3.1collective.geo.settings>= 3.1InstallationThis addon can be installed has any other addons, please follow officialdocumentation.UpgradingVersion 2.0If you are upgrading from an older version to 2.0, you may need to run
upgrade steps. To do this, follow these steps:Browse toportal_setupin the ZMI of your siteClick onto theUpgradestabSelectcollective.geo.mapwidget:defaultfrom the drop-down list and
clickChoose ProfileObserve any available upgrades and click theUpgradebutton if any
are present.ContributorsGerhard Weis - gweisGiorgio Borelli - gborelliSilvio Tomatis - silviotDavid Beitey - davidjbRob Gietema - robgietemaLeonardo J. Caballero G - macaguaDenis Krienbühl - hrefBenoît Suttor - bsuttorChangelog3.1 (2019-01-23)Fix regression of “Fix bad adapter registration causing dexterity add view to fail with a 404”. [mathias.leimgruber]The first discriminator might be a`View`-ish thing or az3c.form.interfaces.IFieldWidget.3.0 (2019-01-22)Fix bad adapter registration causing dexterity add view to fail with a 404.
[jone]Fix display of geocoding results
[mpeeters]Use google api key if defined for geocoding to avoid errors due to the new
google api policy
[mpeeters]Fix google url and allow to set google api key (#25)
[pbauer]Fix required version of collective.geo.openlayers.
[pbauer]Fixed list_language_files collective.geo.openlayers doesn’t use portal_skin anymore
[giorgio]Fixed tests and doctests for plone5 and external api modifications
[pbauer]moved resources to new plone5 resource registry
[pbauer]Modified controlpanel code to use FormWrapper machinery
[pbauer]Updated javascript to draw the map in new plone5 mockup hidden tab
[pbauer]Fix not loaded map case when don’t have jquery.tools.js and open edit view not
in “coordinates” tabAdd ImgPath in map’s default options to point the resource folder
[lucabel]2.3 (2015-11-17)Updated classifiers list for package
[macagua]Updated spanish translation
[macagua]2.2 (2015-05-02)Added more french translations
[tiazma]Precised translation domian in macro context
[tiazma]Fixed error occurring when no location found
[tiazma]2.1.3 (2014-08-16)Bug fix, utils check is a object use “use_custom_styles”,
if not sytles are take from global styles
[bsuttor]Updated classifiers list for package
[macagua]Updated Spanish translation
[macagua]Use getMultiAdapter instead of restrictedTraverse in Views
[gborelli]2.1.2 (2014-03-16)Add content type location’s attribute as default value
for geocoding input field
[gborelli]Fix #14 - GeoCoderView
[gborelli]2.1.1 (2014-02-26)Fix geopy version; geopy 0.98.1 is currently broken
[gborelli]2.1 (2014-02-26)Moved collective_geo_styles metadata and related indexer
from c.geo.contentlocations
[gborelli]Added get_feature_styles method to retrieve map styles
[gborelli]Fixed google.GQueryError ImportError
[Jian Aijun]Updated German translation.
[href]2.0 (2013-10-29)Change package layout
[gborelli]Re-adds previously used maxResolution and maxExtent options, fixing issues
with certain WMTS services. [href]2.0b1 (2013-06-02)move IGeoCoder utility from c.geo.mapwidget
[gborelli]Prevent multiple inclusions of Google maps and Bing javascripts
[gborelli]Moved Openlayers localization to geosettings_view
[gborelli]Added ShapeDisplayLayer
[gborelli]Documented javascript files withhttp://abstract-open-solutions.github.io/code-illuminated/[gborelli]Refactored collectivegeo javascript
[gborelli]Moved static resource to static directory
[gborelli]Removed all Yahoo maps references. See: collective.geo.bundle #19
[gborelli]Removed YahooStreetMapLayer, YahooSatelliteMapLayer, YahooHybridMapLayer
and relative templates
[gborelli]Removed yahoomaps, yahooapi, yahoo_maps_js from collective geo macros
[gborelli]Added c.z3cform.colorpicker profile in metadata.xml. Now we depend on
c.z3cform.colorpicker > 0.2
[gborelli]Added ShapeMapWidget and ShapeEditLayer and theirs respective adapters
[gborelli]1.6 (2013-01-29)added travs-ci configuration [gborelli]refactored tests with plone.app.testing [gborelli]removed tests.base module [gborelli]removed imports from zope.app [gborelli]Changed control panel form in order to make it more user friendly [gborelli]Fixed translation domain in the collectivegeo_macros [rnd0101]Allowed OSM and overlay URL helper functions to take into account
zoomOffset.
[davidjb]Ensuring that the maxExtent for spherical mercator covers all coordinates.
[davidjb]Automatically include OpenLayers language files if the language is
supported by OpenLayers [href]Added German translation [href]Changed javascript to indicate map loading through the custom ‘map-load’ event,
ensuring that invisible maps on tabbed forms are loaded only when made visible.
Javascript code relying on collectivegeo.js must now implement
$(window).bind(‘map-load’, function(e, map) { }); which will be called once
the map is ready. [href]Disabled OpenLayer’s KeyboardDefaults since they lead to the complete consumption
of all + / - and arrow-key presses in input fields. [href]1.5 (2012-02-11)Added French translation [Fabien Moret]Added ability to hit enter key within geocoder input and search. Previously,
hitting enter submitted the parent form.
[davidjb]Fix minor typo on geocoder error div
[davidjb]Replace deprecated usage ofjqwith$(usingjQueryfunction)
[davidjb]Allow mapwidget to utilise HTTPS mapping resources, where possible, to
attempt to avoid issues of loading insecure resources like map tiles. Only
Google and Bing support HTTPS for their APIs at present - Yahoo and OSM do
not. To avoid security errors, avoid the use of the latter two map APIs
when on HTTPS.
[davidjb]Provide request protocol to layer templates
[davidjb]Make tests install the collective.geo.settings extension profile so
plone.app.registry knows about settings.
[davidjb]Added Danish translation [stonor]0.1.4 (2011-09-05)Changed javascript to bind window load event to create map. It fixes #29 [gborelli]Added fix to reload OL map layers when the map is made visible after
being loaded within a non-default Plone fieldset [davidjb]added improvements about the Internationalization [macagua]added support for Spanish localization for collective.geo.mapwidget domain [macagua]Make our mapwidget automatically zoom to see a loaded WKT feature. [davidjb]Show our default fieldset first on our form in accordance with changes in
plone.app.z3cform 0.5.0+. [davidjb]Added ability to display custom-styled maps with inline CSS.  This is based
around width/height initially for either global or local custom settings
but is extensible by mapping more fields. [davidjb]added map_viewlet_managers in control panel form [gborelli]plone 4.1 fixes [gborelli]changed Browser import from Testing.testbrowser [gborelli]removed zope.app.component import [gborelli]changed map widgets jsfactory to provide a simple way to customize it [gborelli]added z3c.autoinclude entry point [gborelli]fixed layers query in maplayersAdded ability to drag features drawn onto OL map when editing [davidjb]Minor spelling corrections [davidjb]0.1.3 (2011-02-20)changed Google maps javascript url0.1.2 (2010-12-28)fixed UnicodeDecodeError in maplayers [gborelli]fixed set_coordinates js [gborelli]Added dutch translations [robgietema]0.1.1 (2010-11-13)added geocoding to controlpaneladded cgmap.portal_url in collective.geo javascriptRemoved unused googleapi configuration from controlpanelChanged numZoomLevels in default mapwidgetUpdated Google map layers to Googlemaps v3fixed italian translation0.1 (2010-10-31)Initial release moved from collective.geo.settings