package com.hiringhall.map import android.content.Context import android.view.ViewGroup import com.google.android.gms.maps.model.LatLng /** * Created by saionara1 on 8/2/17. */ class MarkerView(context: Context) : ViewGroup(context) { var coordinates: LatLng = LatLng(0.0, 0.0) override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { if (getChildAt(0) != null) { setMeasuredDimension(getChildAt(0).width, getChildAt(0).height) }else{ setMeasuredDimension(100, 100) } } override fun onLayout(p0: Boolean, p1: Int, p2: Int, p3: Int, p4: Int) { } }