Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid - Camera Zoom not working
    text
    copied!<p>I have created an app. In that I am randomly generating <code>latitude</code> and <code>longitude</code> on <code>GoogleMap</code> and passing that values to next page.. i.e. <code>CameraPage</code>. But, on CameraPage the pins are not falling properly as on map.. I have implemented the <code>camera-zoom</code> and other methods but, still not working..</p> <p>Please check the screen shot..</p> <p><strong>MapPage</strong></p> <p><img src="https://i.stack.imgur.com/HRLK9.png" alt="enter image description here"></p> <p><strong>CameraPage</strong></p> <p><img src="https://i.stack.imgur.com/PpqEL.png" alt="enter image description here"></p> <p>Is there any solution to zoom the pins on camera without external zoom controls??</p> <p>It should zoom by default when CameraPage gets loaded..</p> <p><strong>EDIT::</strong></p> <p>CODE::</p> <pre><code>ArrayList&lt;Point&gt; props = new ArrayList&lt;Point&gt;(); props.add(new Point(a_latitude, a_longitude, a_username)); props.add(new Point(b_latitude, b_longitude, b_username)); props.add(new Point(c_latitude, c_longitude, c_username)); props.add(new Point(d_latitude, d_longitude, d_username)); props.add(new Point(e_latitude, e_longitude, e_username)); props.add(new Point(f_latitude, f_longitude, f_username)); props.add(new Point(g_latitude, g_longitude, g_username)); props.add(new Point(h_latitude, h_longitude, h_username)); props.add(new Point(i_latitude, i_longitude, i_username)); props.add(new Point(j_latitude, j_longitude, j_username)); mPaint.setColor(Color.BLACK); mPaint.setTextSize(30); mPaint.setStrokeWidth(DpiUtils.getPxFromDpi(getContext(), 2)); mPaint.setAntiAlias(true); mSpots = new Bitmap[props.size()]; for (int i = 0; i &lt; mSpots.length; i++) mSpots[i] = BitmapFactory.decodeResource(context.getResources(), R.drawable.google_pin_new); </code></pre> <p><strong>Point Class::</strong></p> <pre><code>public class Point { public double longitude = 0f; public double latitude = 0f; public String description; public Point(double d, double e, String string) { // TODO Auto-generated constructor stub this.latitude = d; this.longitude = e; this.description = string; } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload