Giter VIP home page Giter VIP logo

Comments (9)

YangJianFei avatar YangJianFei commented on August 20, 2024

image
image

你那边是不是样式被覆盖了,文档和我本地都是正常的

from vue-baidu-map-3x.

MaxCrazy1101 avatar MaxCrazy1101 commented on August 20, 2024

可能我是webGL?

from vue-baidu-map-3x.

MaxCrazy1101 avatar MaxCrazy1101 commented on August 20, 2024

还有bm-maker的label选项无法使用

vue-baidu-map-3x.es.js:158 
        
       Uncaught TypeError: Cannot read properties of undefined (reading 'offset')
    at createLabel (vue-baidu-map-3x.es.js:158:18)
    at Proxy.load (vue-baidu-map-3x.es.js:1217:44)
    at Proxy.ready (vue-baidu-map-3x.es.js:654:14)
    at E$1.emit (vue-baidu-map-3x.es.js:235:20)
    at Object.$emit (vue-baidu-map-3x.es.js:261:32)
    at g0.<anonymous> (vue-baidu-map-3x.es.js:510:19)
    at ev.BaseClass.fire.ev.BaseClass.dispatchEvent (getscript?type=webgl&v=1.0&ak=IDdZzXKwmNj1aHDPKa0uGuy1dhL88ZiB&services=&t=20220830143644:5:2632)
    at getscript?type=webgl&v=1.0&ak=IDdZzXKwmNj1aHDPKa0uGuy1dhL88ZiB&services=&t=20220830143644:20:273002
<template>
    <bm-marker :position="{lng: point.lng, lat: point.lat}" :dragging="false" :lable="point.id" @click="show=true">
        <bm-info-window :show="show" @close="show=false" @open="show=true">ID:{{point.id}}</bm-info-window>
    </bm-marker>
</template>

<script setup lang="ts">
import { Point } from './point';
import { BmMarker, BmInfoWindow } from "vue-baidu-map-3x";
const show = ref(false)
defineProps<{ point: Point }>()
</script>

from vue-baidu-map-3x.

MaxCrazy1101 avatar MaxCrazy1101 commented on August 20, 2024

按需加载是不是还没实现锕

from vue-baidu-map-3x.

MaxCrazy1101 avatar MaxCrazy1101 commented on August 20, 2024
            <Marker v-for="point of pointMap.values()" :point="point" />

更新pointMap的时候marker会自动添加,但是bm-info-window不会添加

from vue-baidu-map-3x.

YangJianFei avatar YangJianFei commented on August 20, 2024

可能我是webGL?

image
gl也显示正常,应该就是你那边样式覆盖了

from vue-baidu-map-3x.

YangJianFei avatar YangJianFei commented on August 20, 2024

还有bm-maker的label选项无法使用

vue-baidu-map-3x.es.js:158 
        
       Uncaught TypeError: Cannot read properties of undefined (reading 'offset')
    at createLabel (vue-baidu-map-3x.es.js:158:18)
    at Proxy.load (vue-baidu-map-3x.es.js:1217:44)
    at Proxy.ready (vue-baidu-map-3x.es.js:654:14)
    at E$1.emit (vue-baidu-map-3x.es.js:235:20)
    at Object.$emit (vue-baidu-map-3x.es.js:261:32)
    at g0.<anonymous> (vue-baidu-map-3x.es.js:510:19)
    at ev.BaseClass.fire.ev.BaseClass.dispatchEvent (getscript?type=webgl&v=1.0&ak=IDdZzXKwmNj1aHDPKa0uGuy1dhL88ZiB&services=&t=20220830143644:5:2632)
    at getscript?type=webgl&v=1.0&ak=IDdZzXKwmNj1aHDPKa0uGuy1dhL88ZiB&services=&t=20220830143644:20:273002
<template>
    <bm-marker :position="{lng: point.lng, lat: point.lat}" :dragging="false" :lable="point.id" @click="show=true">
        <bm-info-window :show="show" @close="show=false" @open="show=true">ID:{{point.id}}</bm-info-window>
    </bm-marker>
</template>

<script setup lang="ts">
import { Point } from './point';
import { BmMarker, BmInfoWindow } from "vue-baidu-map-3x";
const show = ref(false)
defineProps<{ point: Point }>()
</script>

image

image
maker的label属性是一个Lable对象。效果如下
image

from vue-baidu-map-3x.

YangJianFei avatar YangJianFei commented on August 20, 2024

按需加载是不是还没实现锕

按需加载还在开发中

from vue-baidu-map-3x.

YangJianFei avatar YangJianFei commented on August 20, 2024
            <Marker v-for="point of pointMap.values()" :point="point" />

更新pointMap的时候marker会自动添加,但是bm-info-window不会添加

image
信息窗口不能循环添加只能添加一个

from vue-baidu-map-3x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.