<commit_before><?xml version="1.0" encoding="UTF-8" ?>
<controls xmlVersion="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../schemas/control.xsd">

<!-- 

Copyright (C) 2018 - <NAME> / Rapid Information Systems

<EMAIL>


This file is part of the Rapid Application Platform

Rapid is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. The terms require you to include
the original copyright, and the license notice in all redistributions.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
in a file named "COPYING".  If not, see <http://www.gnu.org/licenses/>.

 -->

	<control>
	    
	    <type>map</type>
	    <name>Map</name>
	    <image>images/map.svg</image>
	    <helpHtml>An interactive map that displays a location.</helpHtml>
	    
	    <addToNewApplications>false</addToNewApplications>
	         
	    <canUserAdd>true</canUserAdd>
	    <canUserMove>true</canUserMove>
	    <canUserAddPeers>true</canUserAddPeers>
	    
	    <properties>
	        
	        <property>
	            <key>name</key>
	            <name>Name</name>
	            <changeValueJavaScript>text</changeValueJavaScript>
	            <helpHtml>Name that can be given to the control. Names are used to help identify controls uniquely.</helpHtml>
	        </property>
	        
	        <property>
	            <key>mapType</key>
	            <name>Type</name>
	            <setConstructValueFunction>return "R";</setConstructValueFunction>
	            <changeValueJavaScript>select</changeValueJavaScript>
	            <getValuesFunction>return [["R","Road map"],["S","Satellite image"]];</getValuesFunction>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Sets the type of map from road to satellite.</helpHtml>
	        </property>
	                    
	        <property>
	            <key>lat</key>
	            <name>Centre latitude</name>
	            <setConstructValueFunction>return 51.50722;</setConstructValueFunction>
	            <changeValueJavaScript>mapLatLng</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Sets the latitude position.</helpHtml>
	        </property>
	        
	        <property>
	            <key>lng</key>
	            <name>Centre longitude</name>
	            <setConstructValueFunction>return -0.12750;</setConstructValueFunction>
	            <changeValueJavaScript>mapLatLng</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Sets the longitude position.</helpHtml>
	        </property>
	        
	        <property>
	            <key>zoom</key>
	            <name>Zoom</name>
	            <setConstructValueFunction>return 8;</setConstructValueFunction>
	            <changeValueJavaScript>mapZoom</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Sets the initial zoom level of the map. The higher the number the stronger the zoom. Caps at 21.</helpHtml>
	        </property>
	        
	        <property>
	            <key>markerImage</key>
	            <name>Marker image</name>
	            <setConstructValueFunction>return ""</setConstructValueFunction>
	            <changeValueJavaScript>imageFile</changeValueJavaScript>
	            <helpHtml>Allows you to set a customised marker on the map.</helpHtml>
	        </property>
	        
	        <property>
	            <key>key</key>
	            <name>API Key</name>
	            <setConstructValueFunction>return ""</setConstructValueFunction>
	            <changeValueJavaScript>text</changeValueJavaScript>
	            <helpHtml>Google Maps API key, may be needed to verify your map and make it usable. If multiple maps are used only the first map will be required to have this key.</helpHtml>
	        </property>
	        
	        <property>
	            <key>searchFields</key>
	            <name>Address search fields</name>
	            <changeValueJavaScript>text</changeValueJavaScript>
	            <helpHtml>When markers are added to the map and the data object does not have lat/lng or east/north, the value in the first of these comma-seperated fields will be searched on and the marker added to the results</helpHtml>
	        </property>
	        
	        <property>
	            <key>showMapType</key>
	            <name>Show map type control</name>
	            <setConstructValueFunction>return true;</setConstructValueFunction>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Allows users to swap between satellite and road map views at will.</helpHtml>
	        </property>
	        
	        <property>
	            <key>showZoom</key>
	            <name>Show zoom control</name>
	            <setConstructValueFunction>return true;</setConstructValueFunction>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Allows users to set their own level of zoom.</helpHtml>
	        </property>
	        
	        <property>
	            <key>showScale</key>
	            <name>Show scale</name>
	            <setConstructValueFunction>return true;</setConstructValueFunction>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Whether an indicator for the scale of the map is shown</helpHtml>
	        </property>
	        	        
	        <property>
	            <key>showStreetView</key>
	            <name>Show street view control</name>
	            <setConstructValueFunction>return false;</setConstructValueFunction>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Enables users to access street view on the map.</helpHtml>
	        </property>
	        
	        <property>
	            <key>heatmap</key>
	            <name>Heatmap</name>
	            <setConstructValueFunction>return true;</setConstructValueFunction>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <refreshProperties>true</refreshProperties>
	            <helpHtml>Whether to show a heatmap instead of conventional markers.</helpHtml>
	        </property>
	        
	        <property>
	            <key>opacity</key>
	            <name>Opacity</name>
	            <setConstructValueFunction>return null;</setConstructValueFunction>
	            <changeValueJavaScript>heatmapNumber</changeValueJavaScript>
	            <helpHtml>The opacity of the heatmap, expressed as a number between 0 and 1. Defaults to 0.6.</helpHtml>
	        </property>
	        
	         <property>
	            <key>radius</key>
	            <name>Radius</name>
	            <setConstructValueFunction>return null;</setConstructValueFunction>
	            <changeValueJavaScript>heatmapNumber</changeValueJavaScript>
	            <helpHtml>The radius of influence for each data point, in pixels.</helpHtml><commit_msg>Map control no longer defaults to heatmap<commit_after><?xml version="1.0" encoding="UTF-8" ?>
<controls xmlVersion="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../schemas/control.xsd">

<!-- 

Copyright (C) 2018 - <NAME> / Rapid Information Systems

<EMAIL>


This file is part of the Rapid Application Platform

Rapid is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. The terms require you to include
the original copyright, and the license notice in all redistributions.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
in a file named "COPYING".  If not, see <http://www.gnu.org/licenses/>.

 -->

	<control>
	    
	    <type>map</type>
	    <name>Map</name>
	    <image>images/map.svg</image>
	    <helpHtml>An interactive map that displays a location.</helpHtml>
	    
	    <addToNewApplications>false</addToNewApplications>
	         
	    <canUserAdd>true</canUserAdd>
	    <canUserMove>true</canUserMove>
	    <canUserAddPeers>true</canUserAddPeers>
	    
	    <properties>
	        
	        <property>
	            <key>name</key>
	            <name>Name</name>
	            <changeValueJavaScript>text</changeValueJavaScript>
	            <helpHtml>Name that can be given to the control. Names are used to help identify controls uniquely.</helpHtml>
	        </property>
	        
	        <property>
	            <key>mapType</key>
	            <name>Type</name>
	            <setConstructValueFunction>return "R";</setConstructValueFunction>
	            <changeValueJavaScript>select</changeValueJavaScript>
	            <getValuesFunction>return [["R","Road map"],["S","Satellite image"]];</getValuesFunction>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Sets the type of map from road to satellite.</helpHtml>
	        </property>
	                    
	        <property>
	            <key>lat</key>
	            <name>Centre latitude</name>
	            <setConstructValueFunction>return 51.50722;</setConstructValueFunction>
	            <changeValueJavaScript>mapLatLng</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Sets the latitude position.</helpHtml>
	        </property>
	        
	        <property>
	            <key>lng</key>
	            <name>Centre longitude</name>
	            <setConstructValueFunction>return -0.12750;</setConstructValueFunction>
	            <changeValueJavaScript>mapLatLng</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Sets the longitude position.</helpHtml>
	        </property>
	        
	        <property>
	            <key>zoom</key>
	            <name>Zoom</name>
	            <setConstructValueFunction>return 8;</setConstructValueFunction>
	            <changeValueJavaScript>mapZoom</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Sets the initial zoom level of the map. The higher the number the stronger the zoom. Caps at 21.</helpHtml>
	        </property>
	        
	        <property>
	            <key>markerImage</key>
	            <name>Marker image</name>
	            <setConstructValueFunction>return ""</setConstructValueFunction>
	            <changeValueJavaScript>imageFile</changeValueJavaScript>
	            <helpHtml>Allows you to set a customised marker on the map.</helpHtml>
	        </property>
	        
	        <property>
	            <key>key</key>
	            <name>API Key</name>
	            <setConstructValueFunction>return ""</setConstructValueFunction>
	            <changeValueJavaScript>text</changeValueJavaScript>
	            <helpHtml>Google Maps API key, may be needed to verify your map and make it usable. If multiple maps are used only the first map will be required to have this key.</helpHtml>
	        </property>
	        
	        <property>
	            <key>searchFields</key>
	            <name>Address search fields</name>
	            <changeValueJavaScript>text</changeValueJavaScript>
	            <helpHtml>When markers are added to the map and the data object does not have lat/lng or east/north, the value in the first of these comma-seperated fields will be searched on and the marker added to the results</helpHtml>
	        </property>
	        
	        <property>
	            <key>showMapType</key>
	            <name>Show map type control</name>
	            <setConstructValueFunction>return true;</setConstructValueFunction>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Allows users to swap between satellite and road map type.</helpHtml>
	        </property>
	        
	        <property>
	            <key>showZoom</key>
	            <name>Show zoom control</name>
	            <setConstructValueFunction>return true;</setConstructValueFunction>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Allows users to set their own level of zoom.</helpHtml>
	        </property>
	        
	        <property>
	            <key>showScale</key>
	            <name>Show scale</name>
	            <setConstructValueFunction>return true;</setConstructValueFunction>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Whether an indicator for the scale of the map is shown</helpHtml>
	        </property>
	        	        
	        <property>
	            <key>showStreetView</key>
	            <name>Show street view control</name>
	            <setConstructValueFunction>return false;</setConstructValueFunction>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Enables users to access street view on the map.</helpHtml>
	        </property>
	        
	        <property>
	            <key>heatmap</key>
	            <name>Heatmap</name>
	            <setConstructValueFunction>return false;</setConstructValueFunction>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <refreshProperties>true</refreshProperties>
	            <helpHtml>Whether to show a heatmap instead of conventional markers.</helpHtml>
	        </property>
	        
	        <property>
	            <key>opacity</key>
	            <name>Opacity</name>
	            <setConstructValueFunction>return null;</setConstructValueFunction>
	            <changeValueJavaScript>heatmapNumber</changeValueJavaScript>
	            <helpHtml>The opacity of the heatmap, expressed as a number between 0 and 1. Defaults to 0.6.</helpHtml>
	        </property>
	        
	         <property>
	            <key>radius</key>
	            <name>Radius</name>
	            <setConstructValueFunction>return null;</setConstructValueFunction>
	            <changeValueJavaScript>heatmapNumber</changeValueJavaScript>
	            <helpHtml>The radius of influence for each data point, in pixels.</helpHtml>
{'fraction_non_alphanumeric': 0.0908969567538708, 'fraction_numerical': 0.004538174052322477, 'mean_word_length': 2.3116022099447515, 'pattern_counts': {'":': 0, '<': 441, '<?xml version=': 2, '>': 441, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2262275', 'n_tokens_mistral': 4067, 'n_tokens_neox': 3608, 'n_words': 981}