Giter VIP home page Giter VIP logo

amapmarker-master's Introduction

AMapMarker-master

概述

提供一种高德地图自定义marker的解决方案以及改善高德官方点聚合功能。

说明

官方并没有做多种聚合点的点击事件的处理,这里我对聚合点的点击事件和视角移动监听事件进行了统一的管理和执行,并增加类型判断,让它们不会产生点击冲突,具体讲解请看上面文章。

Marker展示的样式主要通过BitmapDescriptor来决定,而官方提供了很多方法来获取BitmapDescriptor,大家可以根据实际需要来选用。一般如果自定义选用BitmapDescriptorFactory.fromBitmap()方法来获取marker视图,只需要将view转为bitmap即可。同时,根据大家的反馈,自定义的marker加载网络图片有很多问题,这里本人对网络加载图片进行了处理,保证图片正常显示,具体可以参考以上文章。

  • 补充

大家如果有什么想法和建议欢迎在issue区提出来,本项目会后续加入更多地图相关功能,如果觉得本项目对你有帮助,欢迎star~

Todo

  • 为marker添加动画效果
  • 优化marker的内存回收
  • 自定义infoWindow信息栏
  • 自定义地图功能

QQ交流群:

601924443

License

Copyright 2018 moosphan

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

amapmarker-master's People

Contributors

moosphan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.