0

レイアウトを Google マップのマーカーとして表示したいのですが、マップ上で膨らませることができません。誰でもこれを解決するのを手伝ってもらえますか。私はポラリスライブラリを使用しています。私のコードは以下に書かれています:

final View altMarker = ((LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE))
            .inflate(R.layout.map_view, null);

        altMarker.setDrawingCacheEnabled(true);
        altMarker.buildDrawingCache();

        @SuppressWarnings("deprecation")
        Drawable drawable = new BitmapDrawable(altMarker.getDrawingCache());

    final ArrayList<Annotation> annotations = new ArrayList<Annotation>();
        for (Annotation[] region : sRegions) {
            for (Annotation annotation : region) {
                if (region == sFrance || region == sIndia) {
                    annotation.setMarker(drawable);
                }
                annotations.add(annotation);
            }
        }
4

1 に答える 1