Usually answers within 24 hours
Автор дополнения
Usually answers within 24 hours
Version 1.1.7-pl
Release date 11.26.2018
Downloads 37
Views 982
Warning! This component requires PHP version 5.6 or higher! If your site uses PHP less than required, the installation of this package could break it.
Warning! This package requires MODX not less than 2.3 !
The component is a map with the geography of sales in the form of labels on the map, and is conveniently edited by managers through the site's admin area.



Example of use
To create a label, go to Applications -> Sales Geography, the Regions tab, add the Region (Example: Sverdlovsk Region), then go to the City, and add the city, Example:

GeosalesMap — Draws a card with tags
Call settings:
tplCard Checkout Chunk

GeosalesNav — Group cities by region and create navigation on them
Call settings:
tplOuter Chunk wrap
tplRegion Chunk of the design of the region with the cities
tplCity City design chunk
sortby Sort
sortdir Sort by descending / ascending

Example of a call on the page
<div class="row">
    <div class="col-md-3">
    <div class="col-md-9">
        	&tpl=` `

Component settings
geosales_map_behaviors — Card behavior manager
Allows you to enable or disable behavior. Each map already has its own behavior manager, available as map.behaviors. Do not instantiate instances of this class without the need for

geosales_map_zoom — Zoom after loading the map

geosales_map_center — Coordinates of the map center
The place where the map will be located when loading

geosales_map_clickzoom — Zoom on clicking on the menu item
1 — Very far away; 16 — close

geosales_map_clusterize — Enable Clusterer
Yes / No

geosales_map_cluster_icons — Cluster icon
slands #blueClusterIcons, islands #darkOrangeClusterIcons, etc.

geosales_map_controls — Map controls
These are buttons and other graphical elements, through which users can perform various actions with the map. For example, to change the scale, adjust routes, etc. As a rule, the controls are placed in the display area of ​​the map and have a fixed position

geosales_map_marker — Marker for mutiny
Path to marker mapping

geosales_map_type — Which card should I use?
Options: yandex, google

geosales_google_key — Google API Key

geosales_google_cluster_icons — Cluster icon
Path to image

geosales_google_styles — Style
JSON with map style


  • Added field "coordinats" in update window


  • JS Fixes


  • [Added] js events: GeosalesClusterClick only for yandex maps
  • [Added] setting geosales_map_clusterclickout Warning: this update reset component settings!


  • [Added] js events: GeosalesInit only for yandex maps
  • [Added] field for chunk
  • Change description type, from varchar to text


  • [Added] js events: GeosalesBalloonOpen, GeosalesBalloonClose, only for yandex maps


  • [fix] Click from nav menu didn't worked


  • [fix] Map start position for google


  • Added Google map
  • Added image field


  • including EN lexicon


  • First