Serial port and GPS

Maps Class

Collection of Map objects

For a list of all members of this type, see Maps Members.


[Visual Basic]
Public Class Maps
    Inherits ArrayList
public class Maps : ArrayList

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


Contains a collection of map definitions read from a configuration file. Each map definition consists of a bitmap file with the map itself and the boundaries of the file.


The followingfile example.maps:

11d59m05.60sE 49d33m16.05sN 12d00m36.03sE 49d32m21.97sN sbach.bmp
6d37m44.00sE 43d16m26.95sN 6d39m10.66sE 43d15m29.04sN sttropez.jpg
defines two map entries, one in the bitmap file sbach.bmp with the boundaries: and the second map in the file sttropez.jpg with the boundaries
 using System;
 using serial;
 public void checkMap() {
   Maps     maps;
   Map      map;
   MapPoint pt;

   maps = new Maps("example.maps");
   pt = new Point(12.5, 49.3);
   map = maps.get(pt);
   if (map != null) {
     Console.WriteLine("Found map {0} for point {1}", map);


Namespace: serial

Assembly: sgps (in sgps.exe)

See Also

Maps Members | serial Namespace | Map