Browse Source

remove google

main
pecintaseni 5 months ago
parent
commit
e0876c8b08
  1. 4
      app/Controllers/Kewilayahan/PoiGoogleMatoa/PoiGoogleMatoa.php
  2. 4
      app/Views/kewilayahan/dist/kpdl.js
  3. 38
      app/Views/kewilayahan/dist/peta.js
  4. 51
      app/Views/kewilayahan/kytp/kpdl.js
  5. 4
      app/Views/kewilayahan/peta/Legenda.js
  6. 4
      app/Views/kewilayahan/peta/MenuBawah.js
  7. 42
      app/Views/kewilayahan/peta/layers/baseLayers.js
  8. 20
      app/Views/kewilayahan/peta/layers/overlayLayers.js
  9. 8
      app/Views/kewilayahan/peta/peta.js
  10. 4
      public/kpdl/dist/kpdl.js
  11. 38
      public/kpdl/dist/peta.js

4
app/Controllers/Kewilayahan/PoiGoogleMatoa/PoiGoogleMatoa.php

@ -8,6 +8,8 @@ class PoiGoogleMatoa extends \App\Controllers\Kewilayahan\Kytp
{
protected function get_poi_agg($request)
{
return [];
ini_set('max_input_vars', 3000);
$KpdlLib = new KpdlLibrary();
$Ald = new AldLibrary();
@ -98,6 +100,8 @@ class PoiGoogleMatoa extends \App\Controllers\Kewilayahan\Kytp
protected function get_kpdl_agg($request)
{
return [];
$Ald = new AldLibrary();
$KpdlLib = new KpdlLibrary();
$username = session('nip');

4
app/Views/kewilayahan/dist/kpdl.js vendored

File diff suppressed because one or more lines are too long

38
app/Views/kewilayahan/dist/peta.js vendored

File diff suppressed because one or more lines are too long

51
app/Views/kewilayahan/kytp/kpdl.js

@ -281,29 +281,29 @@ const Root = () => {
useEffect(() => {}, [storeKpdl.selectedOpsi])
useEffect(() => {
Highcharts.setOptions({
accessibility: false,
lang: {
decimalPoint: ',',
thousandsSep: '.',
numericSymbols: ['rb', 'jt', 'M', 'T', 'P', 'E']
},
tooltip: {
yDecimals: 2 // If you want to add 2 decimals
}
})
jquery.ajax({
url: base_url + 'kewilayahan/kytp/graph_matoa',
dataType: 'json',
type: 'POST',
data: { ...dataSend },
success: (data) => {
setDataGraphMatoa(data)
}
})
}, [dataSend])
// useEffect(() => {
// Highcharts.setOptions({
// accessibility: false,
// lang: {
// decimalPoint: ',',
// thousandsSep: '.',
// numericSymbols: ['rb', 'jt', 'M', 'T', 'P', 'E']
// },
// tooltip: {
// yDecimals: 2 // If you want to add 2 decimals
// }
// })
// jquery.ajax({
// url: base_url + 'kewilayahan/kytp/graph_matoa',
// dataType: 'json',
// type: 'POST',
// data: { ...dataSend },
// success: (data) => {
// setDataGraphMatoa(data)
// }
// })
// }, [dataSend])
const optionsGraphMatoaAgg = {
chart: {
@ -703,8 +703,7 @@ const Root = () => {
</Card>
</Col>
</Row>
<Row hidden={['pengampu', 'perekam'].includes(storeKpdl.selectedOpsi?.name)}>
{/* <Row hidden={['pengampu', 'perekam'].includes(storeKpdl.selectedOpsi?.name)}>
<Col sm="12">
<Card>
<CardHeader className="d-flex justify-content-center p-2">
@ -720,7 +719,7 @@ const Root = () => {
</CardBody>
</Card>
</Col>
</Row>
</Row> */}
<Row>
<Col sm="12">
<Card>

4
app/Views/kewilayahan/peta/Legenda.js

@ -13,8 +13,8 @@ const ListItem = styled('li')(({ theme }) => ({
const Legenda = () => {
const [chipData, setChipData] = React.useState([
{ key: 0, label: 'BerNPWP', icon: <Circle color="success" /> },
{ key: 1, label: 'Non NPWP', icon: <Circle color="warning" /> },
{ key: 2, label: 'Poi Google', icon: <Circle color="error" /> }
{ key: 1, label: 'Non NPWP', icon: <Circle color="warning" /> }
// { key: 2, label: 'Poi Google', icon: <Circle color="error" /> }
])
const handleDelete = (chipToDelete) => () => {

4
app/Views/kewilayahan/peta/MenuBawah.js

@ -111,7 +111,7 @@ const MenuBawah = (props) => {
<span className="text-xs align-self-center">Pembayaran & SPT</span>
</Button>
</swiper-slide>
<swiper-slide class="d-flex justify-content-center">
{/* <swiper-slide class="d-flex justify-content-center">
<Button
onClick={(e) => onClickRatingUlasan(e)}
style={{ borderRadius: 0 }}
@ -123,7 +123,7 @@ const MenuBawah = (props) => {
<RateReview fontSize="medium" className="align-self-center" />
<span className="text-xs align-self-center text-nowrap">Rating & Ulasan Google</span>
</Button>
</swiper-slide>
</swiper-slide> */}
{/* <swiper-slide class="d-flex justify-content-center">
<Button
onClick={(e) => onClick(e)}

42
app/Views/kewilayahan/peta/layers/baseLayers.js

@ -92,28 +92,28 @@ export const layersmaps = [
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
subdomains: ['a', 'b', 'c'],
checked: true
},
{
name: 'Google Road',
url: 'https://mt{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}',
attribution: `Map data ©${thn} <a href="https://www.google.com/intl/id_id/help/terms_maps/">Google</a>`,
subdomains: ['0', '1', '2', '3'],
checked: false
},
{
name: 'Google Satellite',
url: 'https://mt{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}',
attribution: `Map data ©${thn} <a href="https://www.google.com/intl/id_id/help/terms_maps/">Google</a>`,
subdomains: ['0', '1', '2', '3'],
checked: false
},
{
name: 'Google Hybrid',
url: 'https://mt{s}.google.com/vt/lyrs=y&x={x}&y={y}&z={z}',
attribution: `Map data ©${thn} <a href="https://www.google.com/intl/id_id/help/terms_maps/">Google</a>`,
subdomains: ['0', '1', '2', '3'],
checked: false
}
// {
// name: 'Google Road',
// url: 'https://mt{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}',
// attribution: `Map data ©${thn} <a href="https://www.google.com/intl/id_id/help/terms_maps/">Google</a>`,
// subdomains: ['0', '1', '2', '3'],
// checked: false
// },
// {
// name: 'Google Satellite',
// url: 'https://mt{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}',
// attribution: `Map data ©${thn} <a href="https://www.google.com/intl/id_id/help/terms_maps/">Google</a>`,
// subdomains: ['0', '1', '2', '3'],
// checked: false
// },
// {
// name: 'Google Hybrid',
// url: 'https://mt{s}.google.com/vt/lyrs=y&x={x}&y={y}&z={z}',
// attribution: `Map data ©${thn} <a href="https://www.google.com/intl/id_id/help/terms_maps/">Google</a>`,
// subdomains: ['0', '1', '2', '3'],
// checked: false
// }
]
export const baseLayer = {

20
app/Views/kewilayahan/peta/layers/overlayLayers.js

@ -95,8 +95,8 @@ const parameterPetaWms = (id, layername, style, minzoom) => {
}
//layer poi google
const poiGoogleParam = parameterPetaWms(1, 'matoa:kpdl_poi_google', 'poi_google', 10)
const poiGoogleLayer = L.tileLayer.poiGoogle(poiGoogleParam.url, poiGoogleParam.wmsParams)
// const poiGoogleParam = parameterPetaWms(1, 'matoa:kpdl_poi_google', 'poi_google', 10)
// const poiGoogleLayer = L.tileLayer.poiGoogle(poiGoogleParam.url, poiGoogleParam.wmsParams)
//layer npwp tidak valid
const npwpInvalidParam = parameterPeta(2, 'matoa:kpdl_npwp_tidak_valid', 'poi_matoa_npwp')
@ -118,19 +118,19 @@ npwpInvalidlayer.on('click', (e) => {
export const matoaLayers = {
npwpInvalidlayer,
poiGoogleLayer,
// poiGoogleLayer,
poiMatoaNpwpLayer,
poiMatoaNpwpNullLayer
}
export const overlaysTree = [
{
label: '<span style="padding-left:20px" class="text-center center text-sm">Poi Google</span>'
},
{
label: 'Poi Google',
layer: matoaLayers.poiGoogleLayer
},
// {
// label: '<span style="padding-left:20px" class="text-center center text-sm">Poi Google</span>'
// },
// {
// label: 'Poi Google',
// layer: matoaLayers.poiGoogleLayer
// },
{
label: 'POI MATOA',
selectAllCheckbox: true,

8
app/Views/kewilayahan/peta/peta.js

@ -115,10 +115,10 @@ const Root = () => {
const baseTree = {
label: 'Base Layer',
children: [
{ label: 'Open Street Map', layer: baseLayer.osm },
{ label: 'Google Road', layer: baseLayer.Road },
{ label: 'Google Satellite', layer: baseLayer.Satellite },
{ label: 'Google Hybrid', layer: baseLayer.Hybrid }
{ label: 'Open Street Map', layer: baseLayer.osm }
// { label: 'Google Road', layer: baseLayer.Road },
// { label: 'Google Satellite', layer: baseLayer.Satellite },
// { label: 'Google Hybrid', layer: baseLayer.Hybrid }
]
}
const ctl = L.control.layers.tree(baseTree)

4
public/kpdl/dist/kpdl.js vendored

File diff suppressed because one or more lines are too long

38
public/kpdl/dist/peta.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save