• Stars
    star
    1
  • Language
    JavaScript
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Draw polyline on google map using latitude and longitude coordinates

Draw polyline on google map using latitude and longitude coordinates

GitHub all releases

GitHub tag (latest by date)

This project demonstrates how to draw a polyline on Google Maps using latitude and longitude coordinates. It also includes marking the start and end points on the map.

Getting Started

These instructions will help you set up the project on your local machine for development and testing purposes.

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/jmrashed/google-maps-polyline-draw.git
  2. Open assets\js\script.js in a text editor.

  3. Replace YOUR_API_KEY with your actual Google Maps JavaScript API key obtained in the prerequisites step:

function loadMapScript() {
  var script = document.createElement("script");
  script.src =
    "https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap";
  document.head.appendChild(script);
}

Usage

  1. Open index.html in a web browser.
  2. The map will be displayed with a polyline connecting the given coordinates.
  3. The start and end points will be marked on the map with custom icons and labels.

Demo

Demo in the web browser

Demo in the json file

Demo in the script file

Customization

You can customize the project by modifying the following:

  • Coordinates: In script.js, update the coordinates array with your desired latitude, longitude, label, and time.
  • Polyline Style: In script.js, modify the properties of polyline object to change the polyline's color, opacity, and weight.
  • Marker Icons: In script.js, update the URL of the start and end marker icons to use your own icons.
  • Marker Labels: In script.js, adjust the label text and color for the start and end markers.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

More Repositories

1

zkteco

ZKTeco Package For Laravel. This package provides seamless integration with ZKTeco devices within Laravel applications, enabling communication with attendance devices such as fingerprint, face recognition, or RFID using UDP protocol.https://packagist.org/packages/jmrashed/zkteco
PHP
10
star
2

adibaicon

adibaIcon -Custome Icon Library
CSS
3
star
3

blood-donation-web-application-with-real-time-location-sharing

HTML
2
star
4

go-starter-kit

The Go Starter Kit is a foundational project for building a portfolio website using Go, structured to promote clean code and scalability. It employs the Gin web framework for routing and Viper for configuration management.
HTML
2
star
5

ecommerce

The E-commerce Toolkit for Laravel is a modular package providing essential features for building e-commerce websites. This package includes functionalities for managing product catalogs, carts, checkout systems, payment gateway integrations, and order management.
PHP
2
star
6

two-factor-auth

Laravel 2FA Authentication Package
PHP
2
star
7

phpmyadmin

phpmyadmin
PHP
2
star
8

laravel-automation-package

laravel-automation-package
PHP
1
star
9

laravel-installer

A complete web installer for Laravel applications, making the setup process simple and user-friendly.
PHP
1
star
10

rashed-games-javacript

Rashed's Game using HTML, CSS, and JavaScript
JavaScript
1
star
11

developing-restful-apis-with-python-and-flask

Developing RESTful APIs with Python and Flask
Python
1
star
12

Django-Python-Starter-Kit-for-Beginner

Django was invented by Lawrence Journal-World in 2003, Initial release to the public was in July 2005. Latest version of Django is 4.0.3 (March 2022). This repository will help you, when you will get ready.
Python
1
star
13

face-detection-using-opencv

Face Detection using OpenCV
Python
1
star
14

ResponsiveLoginForm

JavaScript
1
star
15

break-weakness-with-angular

break-weakness-with-angular
HTML
1
star
16

jmrashed

About Md Rasheduzzaman
HTML
1
star
17

Webcam-capture-using-Html5-getUserMedia

Webcam capture using Html5 getUserMedia
JavaScript
1
star
18

desktop-application-using-phpnative-for-zkteco

desktop-application-using-phpnative-for-zkteco
PHP
1
star
19

News-Flutter-UI-Kit

News Flutter UI Kit
Dart
1
star
20

dart-practice-problem-solutions

Welcome to the Dart Practice Problem Solutions repository! This is a dedicated space for daily practice to learn Dart deeply. Our goal is to solve at least one problem each day for 100 days, continuously improving our Dart skills.
Dart
1
star
21

login-ui-react-native-app

This is a React Native application for implementing a login and signup UI/UX.
JavaScript
1
star
22

geolocation

The geolocation package will provide user location
PHP
1
star
23

Email-List-Cleaning-Tool-Using-PHP

Email List Cleaning Tool Using PHP
PHP
1
star
24

hospital-management-system

The Hospital Management System is a comprehensive software solution designed to facilitate efficient management and operations within a hospital or healthcare facility.
PHP
1
star
25

university-management-system-php

The University Management System is a web-based application developed using PHP. It provides a comprehensive solution for managing various aspects of a university, including student management, course management, faculty management, and administrative tasks.
PHP
1
star
26

Install-Redis-on-Windows

Install Redis on Windows
1
star
27

express-openapi-generator

express-openapi-generator
EJS
1
star