2019-01-18 17:10:46 +03:00
|
|
|
package mapobject
|
|
|
|
|
|
|
|
import (
|
|
|
|
"mapserver/mapblockparser"
|
2019-01-18 17:51:10 +03:00
|
|
|
"mapserver/mapobjectdb"
|
2019-01-18 17:10:46 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type POI struct {
|
2019-01-18 17:51:10 +03:00
|
|
|
db mapobjectdb.DBAccessor
|
2019-01-18 17:10:46 +03:00
|
|
|
}
|
|
|
|
|
2019-01-21 16:42:38 +03:00
|
|
|
func (this *POI) OnParsedMapBlock(block *mapblockparser.MapBlock) {
|
2019-01-18 17:10:46 +03:00
|
|
|
var found bool
|
2019-01-18 17:18:42 +03:00
|
|
|
for _, v := range block.BlockMapping {
|
2019-01-18 17:10:46 +03:00
|
|
|
if v == "mapserver:poi" {
|
|
|
|
found = true
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if !found {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
panic("OK") //XXX
|
|
|
|
}
|