<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
	<system>
		<tab id="bluelogic" translate="label" sortOrder="999">
			<label>bluelogic</label>
		</tab>
		<section id="googlemapaddresslookup" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
			<label>Google Map Address Lookup</label>
			<tab>bluelogic</tab>
			<resource>BlueLogic_GoogleMapAddressLookup::config_bluelogic_googlemapaddresslookup</resource>
			<group id="general" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
				<label>general</label>
				<field id="enable" type="select" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
					<label>Enable</label>
					<comment/>
					<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
				</field>
				<field id="googleapikey" type="text" sortOrder="20" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
					<label>Google Map API Key</label>
				</field>
			</group>

			<group id="map_options" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
                <label>Map Options</label>
                <field id="show_marker" type="select" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
                    <label>Show Marker</label>
                    <comment>Show marker on Map</comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="zoom_constrol" type="select" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
                    <label>Zoom Control</label>
                    <comment>Give Access for user to zoom map</comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="zoom" type="text" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
                    <label>Zoom</label>
                    <comment>The initial Map zoom level</comment>
                    <validate>required-entry validate-number</validate>
                </field>
                <field id="maptype_constrol" type="select" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
                    <label>Map Type Control</label>
                    <comment>Give Access for user to change map type</comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="streetview_constrol" type="select" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
                    <label>Street View Control</label>
                    <comment>Give Access for user to use Street View</comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="marker" translate="label" type="Magento\Config\Block\System\Config\Form\Field\File"  sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Upload Marker Icon</label>
                    <backend_model>Magento\Config\Model\Config\Backend\File</backend_model>
                    <upload_dir config="system" scope_info="1">vcomm/googlemaps</upload_dir>
                </field>
            </group>
            <group id="inital_rendering" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
                <label>Initial Location</label>
                <field id="set_location" type="select" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
                    <label>Set Initial Location</label>
                    <comment>Set Any Location on Map By Default</comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="set_latitude" type="text" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
                    <label>Latitude</label>
                    <comment>Set Initial Latitude</comment>
                    <depends>
                        <field id="set_location">1</field>
                    </depends>
                </field>
                <field id="set_longitude" type="text" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
                    <label>Longitude</label>
                    <comment>Set Initial Longitude</comment>
                    <depends>
                        <field id="set_location">1</field>
                    </depends>
                </field>
                <field id="set_current_location" type="select" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
                    <label>Set Current Location</label>
                    <comment>Set User Current Location as Default</comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <depends>
                        <field id="set_location">0</field>
                    </depends>
                </field>
            </group>

		</section>
	</system>
</config>
