Commit 429f6c96 by Luosp

增加地图绘制功能

parent 95981ce8
package cn.com.founder.arcgislib.cluster.listener;
import cn.com.founder.arcgislib.model.LocationModel;
/**
* Copyright: 方正国际软件有限公司
* Author:luo_shaopeng
* Date:2020/6/30 18:32
* EMail:luo_shaopeng@founder.com.cn
* Description:聚合选择得点得信息
*/
public interface IClusterPointInfoListener {
/**
* 点信息回调
* @param locationModel {@link LocationModel}
*/
void pointInfoCallBack(LocationModel locationModel);
}
package cn.com.founder.arcgislib.draw;
import cn.com.founder.arcgislib.common.Variable;
import cn.com.founder.arcgislib.draw.option.IArcGisDrawOption;
import cn.com.founder.arcgislib.view.ArcGisDrawView;
/**
* Copyright: 方正国际软件有限公司
* Author:luo_shaopeng
* Date:2020/7/3 15:15
* EMail:luo_shaopeng@founder.com.cn
* Description:绘制
*/
public class ArcGisDraw implements IArcGisDrawOption {
/**
* {@link ArcGisDrawView}
*/
private ArcGisDrawView mArcGisDrawView;
public ArcGisDraw(ArcGisDrawView arcGisDrawView) {
this.mArcGisDrawView = arcGisDrawView;
}
@Override
public IArcGisDrawOption setShowDrawLayout(boolean isShow) {
mArcGisDrawView.setShowDrawLayout(isShow);
return this;
}
@Override
public IArcGisDrawOption setDrawViewLocation(Variable.ViewLocation location) {
mArcGisDrawView.setDrawViewLocation(location);
return this;
}
@Override
public IArcGisDrawOption setDrawImage(int drawImage) {
mArcGisDrawView.setDrawImage(drawImage);
return this;
}
}
package cn.com.founder.arcgislib.draw.option;
import cn.com.founder.arcgislib.common.Variable;
/**
* Copyright: 方正国际软件有限公司
* Author:luo_shaopeng
* Date:2020/7/3 15:16
* EMail:luo_shaopeng@founder.com.cn
* Description:绘制
*/
public interface IArcGisDrawOption {
/**
* @param isShow boolean-是否显示绘制布局
* 默认显示
*/
IArcGisDrawOption setShowDrawLayout(boolean isShow);
/**
* @param location {@link Variable.ViewLocation } DrawView显示位置
*/
IArcGisDrawOption setDrawViewLocation(Variable.ViewLocation location);
/**
* @param drawImage int(资源ID)-绘制图片
*/
IArcGisDrawOption setDrawImage(int drawImage);
}
package cn.com.founder.arcgislib.model;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Copyright: 方正国际软件有限公司
* Author:luo_shaopeng
* Date:2020/4/16 09:49
* EMail:luo_shaopeng@founder.com.cn
* Description:当前项目导入点实体类
*/
public class PointModel implements Parcelable {
/**
* x点 (经度 longitude)
*/
private double xPoint;
/**
* y点 (纬度 latitude)
*/
private double yPoint;
private String pointName;
public PointModel(){}
public PointModel(double xPoint, double yPoint) {
this.xPoint = xPoint;
this.yPoint = yPoint;
}
public PointModel(double xPoint, double yPoint, String pointName) {
this.xPoint = xPoint;
this.yPoint = yPoint;
this.pointName = pointName;
}
public PointModel(Parcel in){
xPoint = in.readDouble();
yPoint = in.readDouble();
pointName = in.readString();
}
public static final Creator<PointModel> CREATOR = new Creator<PointModel>() {
@Override
public PointModel createFromParcel(Parcel in) {
return new PointModel(in);
}
@Override
public PointModel[] newArray(int size) {
return new PointModel[size];
}
};
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeDouble(xPoint);
parcel.writeDouble(yPoint);
parcel.writeString(pointName);
}
public double getxPoint() {
return xPoint;
}
public void setxPoint(double xPoint) {
this.xPoint = xPoint;
}
public double getyPoint() {
return yPoint;
}
public void setyPoint(double yPoint) {
this.yPoint = yPoint;
}
public String getPointName() {
return pointName;
}
public void setPointName(String pointName) {
this.pointName = pointName;
}
}
package cn.com.founder.arcgislib.search.listener;
import java.util.List;
import cn.com.founder.arcgislib.model.SearchModel;
/**
* Copyright: 方正国际软件有限公司
* Author:luo_shaopeng
* Date:2020/5/13 10:03
* EMail:luo_shaopeng@founder.com.cn
* Description:搜索接口回调
*/
public interface ISearchResultListener {
/**
* @param searchModelList 搜索回调
*/
void callBack(List<SearchModel> searchModelList);
}
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<layer-list>
<item android:left="1.5dip" android:top="1.0dip">
<shape>
<solid android:color="#1A000000"/>
<corners android:radius="5.0dip"/>
</shape>
</item>
<item android:bottom="1.50dip" android:right="1.0dip">
<shape>
<solid android:color="#fff"/>
<corners android:radius="5.0dip"/>
</shape>
</item>
</layer-list>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true">
<shape
android:shape="rectangle">
<corners
android:radius="5dp" />
<solid android:color="#1A000000"/>
</shape>
</item>
<item android:state_pressed="false">
<shape
android:shape="rectangle">
<solid android:color="#00000000"/>
<corners android:radius="5dp"/>
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:color="@color/colorBg"
android:width="@dimen/dimen_block_1"
/>
<solid android:color="@color/colorWhite"/>
<corners android:radius="@dimen/dimen_block_2"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path android:pathData="M512 1024C229.243871 1024 0 794.756129 0 512 0 229.243871 229.243871 0 512 0 794.756129 0 1024 229.243871 1024 512 1024 794.756129 794.756129 1024 512 1024z m0-33.032258C776.522323 990.967742 990.967742 776.522323 990.967742 512S776.522323 33.032258 512 33.032258 33.032258 247.477677 33.032258 512 247.477677 990.967742 512 990.967742z" android:fillColor="#515151"></path>
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:fillColor="#515151"
android:pathData="M895.592468 324.921207l-277.489942 0L618.102526
149.797701c0-43.784202-36.72339-79.605036-81.618902-79.605036l-48.960085
0c-44.898583 0-81.625042 35.820833-81.625042 79.605036l0 175.123506L128.411625
324.921207c-17.958 0-32.649608 14.334473-32.649608 31.846312l0 159.198815c0
17.521049 14.691607 31.853475 32.649608 31.853475l16.320711 0 0 245.972111c0
70.053496-16.320711 128.169101-16.320711 128.169101 0 17.510816 14.687514
31.844266 32.641421 31.844266l701.890838 0c17.962094 0 32.647561-14.338566
32.647561-31.844266 0 0-16.324804-60.506049-16.324804-131.354654L879.266641
547.820833l16.324804 0c17.958 0 32.645514-14.334473
32.645514-31.846312L928.236959 356.768543C928.237983 339.250564 913.554562
324.921207 895.592468 324.921207zM885.113813 489.832118c0 8.756431-7.343245
15.920598-16.324804 15.920598L155.213038 505.752716c-8.982582
0-16.324804-7.164167-16.324804-15.920598L138.888234 382.907876c0-8.760524
7.343245-15.922644 16.324804-15.922644l293.810652 0L449.02369
157.753907c0-31.045063 25.305339-45.49517 57.133232-45.49517l11.689227
0c31.827893 0 57.127092 14.450107 57.127092 45.49517l0 209.231325 293.814746
0c8.982582 0 16.324804 7.161097 16.324804 15.922644L885.11279
489.832118zM687.47143 699.067536l-8.16496 0c-6.523577 0-12.239765
5.570879-12.239765 11.941983l0 200.726627L536.483624 911.736147 536.483624
711.00952c0-6.371104-5.708002-11.941983-12.245905-11.941983l-8.157797 0c-6.52153
0-12.235672 5.570879-12.235672 11.941983l0 200.726627L365.097232 911.736147
365.097232 711.00952c0-6.371104-5.714142-11.941983-12.249999-11.941983l-8.15575
0c-6.525624 0-12.243859 5.570879-12.243859 11.941983l0 200.726627L171.529655
911.736147c0 0 16.322757-47.092551 16.322757-117.943203l0-245.972111 648.294153
0 0 245.972111c0 70.850651 16.320711 117.943203 16.320711 117.943203L699.712219
911.736147 699.712219 711.00952C699.712219 704.638415 694.003194 699.067536
687.47143 699.067536z" />
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:fillColor="#515151"
android:pathData="M512.26337 1023.998035C230.325313 1023.998035 0.98076 794.31739 0.98076
511.998035 0.98076 229.680645 230.325313 0.001965 512.26337 0.001965 560.582019
0.001965 612.556407 8.044591 670.210948 24.528829L622.839647
71.945336C587.023232 62.927846 551.485912 58.682472 512.26337 58.682472
262.637328 58.682472 59.58658 262.037866 59.58658 511.998035 59.58658 761.962134
262.637328 965.313597 512.26337 965.313597 753.734756 965.313597 951.669436
775.006833 964.324975 536.289044L1023.017274 536.289044C1010.324392 807.385674
786.095908 1023.998035 512.26337 1023.998035ZM251.978687 485.197144 292.673351
444.447447 458.728415 610.69709 919.31418 149.507931 959.961674 190.212422
458.728415 692.155209 251.978687 485.197144Z" />
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path android:pathData="M613.18144 997.376c9.1136 31.3856 55.7568 36.352 72.6016 7.68l333.568-567.9616c10.24-17.408 3.072-39.0656-16.0768-48.384-19.1488-9.3184-42.9056-2.7648-53.1456 14.6432l-286.464 487.7824L413.80864 26.624C404.79744-4.1984 359.33184-9.7792 341.82144 17.8176L5.28384 546.816c-10.8544 17.0496-4.4544 38.912 14.336 48.8448 18.7392 9.9328 42.752 4.096 53.6064-13.0048l288.8704-453.9904 251.0848 868.6592z" android:fillColor="#616161"></path>
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:fillColor="#515151"
android:pathData="M572.261479 238.303454l378.358257 272.04186L572.261479 782.425036 572.261479
655.323243l0-41.434691-40.812521 0c-147.622152 0.040932-325.443094
0.125867-479.67785 181.236737 41.178865-256.896928 199.330838-383.66717
480.084103-386.42191l40.405245-0.414439 0-41.020252L572.260455 238.303454
572.261479 238.303454zM531.448958 158.145833 531.448958 158.145833l0
209.122855c-502.675634 4.929266-531.428491 399.703401-531.428491 576.401776
153.680125-278.234909 335.421352-288.262286 531.428491-288.347221l0 207.215412
489.756393-352.194364L531.448958 158.145833" />
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path android:pathData="M25.6 998.4h977.92V20.48H25.6v977.92zM0 0h1024v1024H0V0z" android:fillColor="#515151"></path>
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path android:pathData="M899.234286 30.114286L610 496.114286l-12.994286 20.925714 17.931429 16.88L959.44 858.285714 198.857143 989.577143 33.325714 337.988571l297.257143-307.874285h568.651429M953.382857 0H317.794286L0 329.142857l176.548571 694.857143L1024 877.714286 635.588571 512 953.382857 0z" android:fillColor="#515151"></path>
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:fillColor="#515151"
android:pathData="M999.919 914.938a24.039 24.039 0 0
1-23.559-19.28c-0.312-1.506-16.066-73.449-83.253-144.106-85.55-89.974-217.921-139.479-383.897-143.812v195.482c0
9.034-5.068 17.334-13.111 21.411-8.062 4.113-17.72 3.379-25.046-1.946L9.945
488.423C3.72 483.906 0.01 476.671 0.01 468.978s3.673-14.928 9.878-19.463L471
113.708a24.104 24.104 0 0 1 25.082-2.001 24.068 24.068 0 0 1 13.129
21.447v207.564c29.71 1.083 81.527 5.49 141.608 21.447 95.63 25.377 175.01 69.666
235.972 131.62 93.812 95.372 139.975 229.122 137.183 397.502-0.184 12.302-9.622
22.438-21.87 23.54-0.733 0.074-1.468 0.111-2.184 0.111z m-514.744-355.6c106.591
0 201.083 16.783 280.903 49.87 64.69 26.81 119.867 64.342 164.029 111.495a419.81
419.81 0 0 1 37.348 45.905c-16.012-97.502-54.462-177.598-114.947-239.074C722.321
395.18 529.573 388.478 492.261 388.478c-3.984 0-6.17 0.091-6.206 0.091a24.176
24.176 0 0 1-17.572-6.72 24.13 24.13 0 0 1-7.364-17.334V180.417L64.975 468.905
461.12 756.069V583.392c0-13.294 10.76-24.055 24.055-24.055z" />
</vector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/MatchParent">
<RelativeLayout
android:id="@+id/search_total_rl"
style="@style/WrapContent.WidthMatchParent">
<LinearLayout
android:id="@+id/search_ll"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dimen_block_20"
android:layout_marginLeft="@dimen/dimen_block_10"
android:layout_marginRight="@dimen/dimen_block_10"
android:layout_marginTop="@dimen/dimen_block_20"
android:background="@drawable/bg_white_stroke_gray_selector"
android:descendantFocusability="beforeDescendants"
android:gravity="center_vertical"
android:orientation="horizontal"
android:layout_toLeftOf="@+id/search_scroll_content_search_cancel_search_tv">
<LinearLayout
android:id="@+id/search_scroll_content_type_ll"
style="@style/WrapContent"
android:padding="@dimen/dimen_block_10"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/search_scroll_content_type_tv"
style="@style/WrapContent.main_text_style"
android:text="POI" />
<ImageView
android:layout_width="15dip"
android:layout_height="15dip"
android:src="@drawable/icon_down_arrow"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/dimen_block_5" />
</LinearLayout>
<ImageView
android:layout_width="20dip"
android:layout_height="20dip"
android:layout_marginLeft="@dimen/dimen_block_10"
android:layout_marginTop="2dip"
android:src="@drawable/icon_search"
android:visibility="gone" />
<EditText
android:id="@+id/search_scroll_content_search_et"
style="@style/WrapContent.WidthMatchParent"
android:textColor="@color/color_333333"
android:textSize="@dimen/dimen_font_16sp"
android:background="@null"
android:hint="@string/string_search_hint"
android:paddingLeft="@dimen/dimen_block_5"
android:paddingTop="@dimen/dimen_block_10"
android:paddingRight="@dimen/dimen_block_10"
android:paddingBottom="@dimen/dimen_block_10"
android:textColorHint="@color/color_CCCCCC"
android:imeOptions="actionSearch"
android:inputType="text"
android:textCursorDrawable="@drawable/bg_navi_et_cursor" />
</LinearLayout>
<TextView
android:id="@+id/search_scroll_content_search_cancel_search_tv"
style="@style/WrapContent.main_text_style"
android:layout_alignParentRight="true"
android:text="@string/string_common_cancel"
android:padding="@dimen/dimen_block_10"
android:layout_marginTop="@dimen/dimen_block_20"
android:layout_marginRight="@dimen/dimen_block_10" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/search_ll"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/search_swipeRecyclerView"
style="@style/WrapContent.WidthMatchParent"
android:paddingBottom="10dip"
android:visibility="gone" />
<LinearLayout
android:id="@+id/search_empty"
style="@style/MatchParent"
android:gravity="center"
android:orientation="vertical">
<TextView
style="@style/WrapContent.main_text_style"
android:text="@string/string_common_nodata" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/search_type_ll"
style="@style/WrapContent"
android:layout_below="@+id/search_ll"
android:background="@drawable/bg_gray_stock"
android:layout_marginLeft="@dimen/dimen_block_10"
android:orientation="vertical"
android:visibility="gone">
<TextView
android:id="@+id/search_type_poi_tv"
style="@style/WrapContent.main_text_style"
android:text="POI"
android:padding="@dimen/dimen_block_10" />
<View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="@color/colorBg" />
<TextView
android:id="@+id/search_type_dw_tv"
style="@style/WrapContent.main_text_style"
android:text="实有单位"
android:padding="@dimen/dimen_block_10" />
<View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="@color/colorBg" />
<TextView
android:id="@+id/search_type_fw_tv"
style="@style/WrapContent.main_text_style"
android:text="实有房屋"
android:padding="@dimen/dimen_block_10" />
<View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="@color/colorBg" />
<TextView
android:id="@+id/search_type_dz_tv"
style="@style/WrapContent.main_text_style"
android:text="标准地址"
android:padding="@dimen/dimen_block_10" />
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/MatchParent">
<LinearLayout
android:id="@+id/search_total_ll"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dimen_block_20"
android:layout_marginLeft="@dimen/dimen_block_10"
android:layout_marginRight="@dimen/dimen_block_10"
android:layout_marginTop="@dimen/dimen_block_20"
android:background="@drawable/bg_white_stroke_gray_selector"
android:gravity="center_vertical"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
<ImageView
android:layout_width="20dip"
android:layout_height="20dip"
android:layout_marginLeft="@dimen/dimen_block_10"
android:layout_marginTop="2dip"
android:src="@drawable/icon_search" />
<TextView
android:id="@+id/search_result_tv"
style="@style/WrapContent.WidthMatchParent"
android:textColor="@color/color_333333"
android:textSize="@dimen/dimen_font_16sp"
android:background="@null"
android:hint="@string/string_search_hint"
android:paddingLeft="@dimen/dimen_block_5"
android:paddingTop="@dimen/dimen_block_10"
android:paddingRight="@dimen/dimen_block_10"
android:paddingBottom="@dimen/dimen_block_10"
android:textColorHint="@color/color_CCCCCC"
/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment