Showing region/location
- 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 });
- id '10': region from geocode
- dataset 'IG': Object dataset from geocode
- 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 - Show region by name and assign dataset to 'ADM'
map.Overlays.load(new longdo.Overlays.Object( 'ต.ถ้ำน้ำผุด', 'ADM' ));
Example - Show location from longdo map by assign dataset to 'LONGDO'
map.Overlays.load(new longdo.Overlays.Object( 'A10000001', // POI id 'LONGDO', ));
Example - Remove region/location by using Overlays.unload method
map.Overlays.unload(object1);
Example
Example
Geocode list