2019-01-18 17:10:46 +03:00
|
|
|
package mapobject
|
|
|
|
|
|
|
|
import (
|
|
|
|
"mapserver/coords"
|
|
|
|
"mapserver/mapblockparser"
|
|
|
|
"mapserver/mapdb"
|
|
|
|
)
|
|
|
|
|
|
|
|
type POI struct {
|
|
|
|
db mapdb.DBAccessor
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *POI) OnParsedMapBlock(block *mapblockparser.MapBlock, pos coords.MapBlockCoords) {
|
|
|
|
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
|
|
|
|
}
|