![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
vite-plugin-mars3d
Advanced tools
基于 Vue3.x + Mars3D 平台的🌎Vite插件
//安装mars3d主库
npm install mars3d mars3d-cesium @turf/turf --save
//安装vite插件
npm install vite-plugin-mars3d --save
vite.config.ts中引入plugin插件
import { defineConfig } from 'vite';
import { mars3dPlugin } from 'vite-plugin-mars3d';
export default defineConfig({
plugins: [mars3dPlugin()]
});
如果你个性化需求,也可以按需传入参数
import { defineConfig } from 'vite';
import { mars3dPlugin } from 'vite-plugin-mars3d';
export default defineConfig({
plugins: [
mars3dPlugin({
mars3dPackageName: "mars3d",
mars3dRunPath: "mars3d",//目录名称
cesiumPackageName: "mars3d-cesium",
cesiumRunPath: "mars3d-cesium",//目录名称
useStatic: false,
}),
]
});
import { defineConfig } from 'vite';
import { mars3dPlugin } from 'vite-plugin-mars3d';
export default defineConfig({
plugins: [
mars3dPlugin({
useExternal: true, //排除了引入包,html中手动静态引入相关资源
}),
]
});
mars3d-cesium
包,仅安装cesium
包,就是不能同时存在2个cesium
包
package.json文件示例: "dependencies": {
"cesium": "^1.118.0",
"mars3d": "^3.7.20",
"mars3d-space": "^3.7.20",
"rollup": "^2.79.1",
"vue": "^3.2.47"
},
"devDependencies": {
"vite": "^4.2.0",
"vite-plugin-mars3d": "^4.1.0",
"@vitejs/plugin-vue": "^4.1.0",
"typescript": "^4.9.3",
"vue-tsc": "^1.2.0"
}
mars3dPlugin({ cesiumPackageName: "cesium" })
vite.config.ts文件示例:
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { mars3dPlugin } from "vite-plugin-mars3d"; // 引入插件
export default defineConfig({
plugins: [
vue(),
mars3dPlugin({ cesiumPackageName: "cesium" }), // 使用cesium原生包
],
});
https://github.com/nshen/vite-plugin-cesium
mars3dPlugin({ useStatic: true })
Mars3D平台
是火星科技研发的一款基于 WebGL 技术实现的三维客户端开发平台,基于Cesium优化提升与 B/S 架构设计,支持多行业扩展的轻量级高效能 GIS 开发平台,能够免安装、无插件地在浏览器中高效运行,并可快速接入与使用多种 GIS 数据和三维模型,呈现三维空间的可视化,完成平台在不同行业的灵活应用。
Mars3D 平台可用于构建无插件、跨操作系统、 跨浏览器的三维 GIS 应用程序。平台使用 WebGL 来进行硬件加速图形化,跨平台、跨浏览器来实现真正的动态大数据三维可视化。通过 Mars3D 产品可快速实现浏览器和移动端上美观、流畅的三维地图呈现与空间分析。
Mars3D 官网:http://mars3d.cn
Mars3D 开源项目列表:https://github.com/marsgis/mars3d
FAQs
Mars3D 在 Vite 平台的插件
We found that vite-plugin-mars3d demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.