toPixels(): Project Longitudes & Latitudes to pixels of a custom view
<p>I'm still facing a difficulty to project a list of geological positions to pixels. I have a custom view (derived from SurvaceView) for simply painting the coordinates.</p>

<p>My code:</p>

<pre><code>x = (int) sView.getHeight() * ( (pos.getLat() - minLat) / (maxLat - minLat)) + margin;
...
myPoints.add(new Point(x,y));

onDraw(Canvas canvas) {
  for (Point p : myPoints) {
    canvas.drawPoint(p.x, p.y, myPaint);
  }
</code></pre>

<p>.... doesn't fit the entire view. I am becoming desperate. Do you have a idea?</p>

<p>Thanks</p>
