back | source
Showing region/location
  1. Use Overlays.load method by assign paremeter to longdo.Overlays.Object
    map.Overlays.load(new longdo.Overlays.Object('10', 'IG'));
    map.Overlays.load(new longdo.Overlays.Object('2_', 'IG'));
    map.Overlays.load(new longdo.Overlays.Object('610604;610607;610703;610704;610802', 'IG', {
        combine: true
    });
  2. id '10': region from geocode
  3. dataset 'IG': Object dataset from geocode
  4. Example

    Geocode list
  5. Option can be added (same as polygon creation)
    map.Overlays.load(new longdo.Overlays.Object(
      '12',
      'IG',
      {
        title: 'นนทบุรี',
        label: 'นนทบุรี',
        lineColor: '#888',
        fillColor: null  //background color
      }
    ));
    Example
  6. Show region by name and assign dataset to 'ADM'
    map.Overlays.load(new longdo.Overlays.Object(
      'ต.ถ้ำน้ำผุด',
      'ADM'
    ));
    Example
  7. Show location from longdo map by assign dataset to 'LONGDO'
    map.Overlays.load(new longdo.Overlays.Object(
      'A10000001', // POI id
      'LONGDO',
    ));
    Example
  8. Remove region/location by using Overlays.unload method
    map.Overlays.unload(object1);
    Example