![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Barikoi GL JS is a JavaScript library built on top of MapLibre GL, designed for seamless integration with Barikoi Maps, offering high-performance and customizable map rendering. It is ideal for use in modern web applications, including React and Next.js projects.
Powered by Barikoi - Maps for Businesses, this package provides tools to integrate maps and location services effortlessly.
To install the package via npm, run the following command:
npm i bkoi-gl
Or via yarn:
yarn add bkoi-gl
Here’s an example of how to use the library in a React component:
import { useEffect, useRef } from "react";
import { Map, Marker } from "bkoi-gl"; // Import Package
import "bkoi-gl/dist/style/bkoi-gl.css"; // Import CSS
const BarikoiMapGL = () => {
// Refs
const mapContainer = useRef(null);
const map = useRef(null);
useEffect(() => {
if (map.current) return; // Ensures map initializes only once
map.current = new Map({
container: mapContainer.current,
center: [90.39017821904588, 23.719800220780733], // Dhaka coordinates
zoom: 10,
doubleClickZoom: false,
accessToken: "YOUR_BARIKOI_API_KEY_HERE" // Replace with your Barikoi API key
});
const marker = new Marker()
.setLngLat([90.39017821904588, 23.719800220780733]) // Set marker coordinates (Dhaka)
.addTo(map.current); // Add marker to the map
}, []);
return <div ref={mapContainer} style={containerStyles} />;
}
// JSX Styles
const containerStyles = {
width: "100%",
height: "100vh",
minHeight: "400px",
overflow: "hidden",
};
export default BarikoiMapGL
Note: When using Next.js, ensure dynamic imports for the <BarikoiMapGL/>
component by using next/dynamic
. If you're using the /app
directory in Next.js, remember to include the "use client"
directive at the top of your component.
Add the following script to your HTML:
<script src="https://cdn.barikoi.com/bkoi-gl-js/dist/bkoi-gl.js"></script>
Comprehensive guide is available here.
To access Barikoi's API services, you need to:
Once registered, you'll be able to access the full suite of Barikoi API services. If you exceed the free usage limits, you'll need to subscribe to a paid plan.
This library is licensed under the MIT License. See the LICENSE file for details.
For any issues or questions, please contact support@barikoi.com.
FAQs
A WebGL interactive maps library to use Barikoi maps and API
We found that bkoi-gl 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.