27 lines
364 B
Go
27 lines
364 B
Go
package mapobject
|
|
|
|
import (
|
|
"mapserver/mapblockparser"
|
|
"mapserver/mapobjectdb"
|
|
)
|
|
|
|
type POI struct {
|
|
db mapobjectdb.DBAccessor
|
|
}
|
|
|
|
func (this *POI) OnParsedMapBlock(block *mapblockparser.MapBlock) {
|
|
var found bool
|
|
for _, v := range block.BlockMapping {
|
|
if v == "mapserver:poi" {
|
|
found = true
|
|
break
|
|
}
|
|
}
|
|
|
|
if !found {
|
|
return
|
|
}
|
|
|
|
panic("OK") //XXX
|
|
}
|