|
@@ -565,11 +565,11 @@ export default defineComponent({
|
|
try {
|
|
try {
|
|
const feat: any = new format.WKT().readFeature(`POINT(${v.longitude} ${v.latitude})`)
|
|
const feat: any = new format.WKT().readFeature(`POINT(${v.longitude} ${v.latitude})`)
|
|
let type = ''
|
|
let type = ''
|
|
- if (v.type = '公安类') {
|
|
|
|
|
|
+ if (v.type === '公安类') {
|
|
type = 'galsb'
|
|
type = 'galsb'
|
|
- } else if (v.type = '社会类') {
|
|
|
|
|
|
+ } else if (v.type === '社会类') {
|
|
type = 'shlsb'
|
|
type = 'shlsb'
|
|
- } else if (v.type = '民用类') {
|
|
|
|
|
|
+ } else if (v.type === '民用类') {
|
|
type = 'mylsb'
|
|
type = 'mylsb'
|
|
}
|
|
}
|
|
feat.set('defaultStyle', SbStyle.sbStyle(type))
|
|
feat.set('defaultStyle', SbStyle.sbStyle(type))
|