Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • GfG 160: Daily DSA
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • JS Tutorial
  • JS Exercise
  • JS Interview Questions
  • JS Array
  • JS String
  • JS Object
  • JS Operator
  • JS Date
  • JS Error
  • JS Projects
  • JS Set
  • JS Map
  • JS RegExp
  • JS Math
  • JS Number
  • JS Boolean
  • JS Examples
  • JS Free JS Course
  • JS A to Z Guide
  • JS Formatter
Open In App
Next Article:
Top 10 JavaScript Libraries for Creating Interactive Maps
Next article icon

Top 10 JavaScript Libraries for Creating Interactive Maps

Last Updated : 04 Mar, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Have you ever been curious about how to make those extraordinary maps on websites that you can tap and interact with? It is all about using JavaScript libraries. Nowadays, maps are a core part of web development, offering clients responsive ways to explore and interact with information.

Top-10-JavaScript-Libraries-for-Creating-Interactive-Maps
Top 10 JavaScript Libraries for Creating Interactive Maps

In this article, we are going to explore in depth into the best 10 JavaScript mapping libraries that support designers to construct amazing and dynamic interactive maps that you can interact with in lots of distinctive ways.

What are JavaScript Mapping Libraries?

JavaScript mapping libraries are open-source JavaScript tools that help engineers make interactive and visually desirable maps for websites or applications. They give pre-written code that lets you add maps to your projects and alter them with things like markers, zooming, and drawing routes. Designers can prefer from a wide range of JavaScript mapping libraries to make custom maps.

Think of them as ready-to-use units that make it simple to make and show maps on your site or application without beginning from scratch. They give an API to show maps on site or app. You can handle how the maps look, load distinctive parts of the map (like tiles and layers), including changes, connect information to the map, make it interactive, and more.

Table of Content

  • Top 10 JavaScript Libraries for Creating Interactive Maps
    • 1. Leaflet
    • 2. HERE JavaScript API
    • 3. Google Maps JavaScript API
    • 4. D3.js
    • 5. OpenLayers
    • 6. jQuery Mapael
    • 7. CesiumJS
    • 8. ArcGIS API for JavaScript
    • 9. Tangram
    • 10. DataMaps
  • Advantages of Creating Interactive Maps

Top 10 JavaScript Libraries for Creating Interactive Maps

1. Leaflet

Leaflet is an easy open-source library for developing interactive maps. Developers picks Leaflet over another JavaScript libraries to add maps to mobile applications. Lots of big companies like Flickr, Facebook, Etsy, and GitHub use Leaflet.

Key Features:

  • Mobile-friendly: Leaflet works awesome on phones and tablets. It is simple to zoom in and out and move the map around with your fingers. This implies you can build websites or apps with maps that see great and work well on any device, whether it is an enormous computer screen or a small phone screen.
  • GeoJSON Support: Leaflet gives native support for GeoJSON, a well known format for representing geographic information. You can easily load GeoJSON files or information specifically into Leaflet maps, permitting for dynamic visualization of spatial information.
  • Interactive Features: Leaflet permits you to make highly interactive maps with features like popups, tooltips, and custom event handling. You can show extra data when clients tap on markers or regions of the map, improving the client involvement.

2. HERE JavaScript API

HERE JavaScript API's give developers with adaptable tools for integrating interactive maps and location-based services into a huge range of webs and portable applications.

Key Features:

  • Geocoding: With the HERE JavaScript API, you can effectively change addresses into map coordinates (forward geocoding) or map coordinates into addresses (reverse geocoding). This is basic for mapping applications that include address-based searches or showing areas based on coordinates.
  • Routing and Navigation: It helps you find the best route between diverse stops, figure out how long it will take to get there, and gives you step-by-step directions. This is truly supportive for apps that require to help individuals arrange their routes or navigate to distinctive places.
  • Live Traffic Information: you can see live upgrades on traffic conditions like how busy the streets are, if there are any accidents or closures. This helps clients choose the best route and maintain a strategic distance from getting stuck in traffic jams or delays.

3. Google Maps JavaScript API

Google Maps is the most well known mapping platform in the world. With Google Maps, you can easily find out how long it will take to get to your destination.

Key Features:

  • Integration with Google Services: The API consistently coordinating with other Google services such as Places API, Directions API, and Street View API, permitting designers to upgrade maps with extra functionalities like location search, directions.
  • Street View Integration: It gives support for joining Street View imagery into maps, permitting clients to investigate areas in a 360-degree panoramic view specifically inside the map interface.
  • Vector-Based Rendering: Vector-Based Rendering implies that Google Maps JavaScript API makes maps using lines, shapes, and colors instead of fixed pictures. This makes it possible to zoom in and out easily without the map getting blurry or pixelated. So, no matter how much you zoom in or out, the map continuously looks clear and sharp, giving you a pleasant experience whereas exploring.

4. D3.js

D3.js (Data-Driven Documents) moreover presents effective tools for making interactive maps. Its data-binding strategy and SVG rendering make it highly adaptable for building custom map visualizations, particularly for data-driven applications.

Key Features:

  • Scalability: D3.js can handle huge amounts of information and make all sorts of maps, from basic ones like charts to really detailed ones showing geography.
  • Integration with Other Libraries: D3.js can be consistently integrated with other JavaScript libraries and frameworks, such as React or Angular, permitting developers to use the qualities of D3.js for map visualization inside their preferred development environment.
  • Community and Documentation: D3.js has a bunch of individuals who use it and share what they know. They make guides, tutorials, and show examples to help both newbies and specialists understand and use D3.js better. So, if you are stuck or need to learn something modern, there is likely somebody out there who can help.

5. OpenLayers

OpenLayers is an open-source project with a dynamic community of engineers contributing to its advancement and support. It supports diverse information groups for geographic data, including GeoJSON, KML, GPX, WKT, and more. OpenLayers can work together with other online services like WMS and WFS. These services give more geographic information that engineers can include to their maps.

6. jQuery Mapael

jQuery Mapael permits designers to make vector-based maps, which means that map components (such as countries, regions, or cities) are represented as adaptable vector graphics (SVG).

Key Features:

  • SEO Friendly: This stands out from most mapping libraries. jQuery Mapael guarantees your map content is available to search engines even with JavaScript disabled. It gives an alternative text-based representation for crawlers to get it your map's content.
  • Responsive Design: jQuery Mapael supports responsive design, guaranteeing that maps adjust consistently to diverse screen sizes and devices.
  • Interactive Actions: jQuery Mapael enables designers to define custom activities and behaviors in response to client interactions, such as clicks, hovers, or zooms.

7. CesiumJS

CesiumJS permits engineers to make 3D maps. It is a best choice for projects that require point by point 3D representation.

Key Features:

  • Support for Time-Dynamic Information: CesiumJS empowers designers to visualize time-dynamic information, such as historical or real-time events, by animating changes over time. This feature is valuable for applications like following climate patterns, vehicle developments, or natural changes.
  • Offline Mode: CesiumJS supports offline mode and tile caching, permitting maps to be accessed and seen offline without an internet connection. This feature is valuable for applications that require access to maps in remote or offline environments.
  • WebVR and Virtual Reality Support: CesiumJS supports WebVR and virtual reality (VR) gadgets, empowering engineers to make immersive VR experiences with 3D maps and globes. This feature is valuable for applications like virtual tourism, and gaming.

8. ArcGIS API for JavaScript

The ArcGIS API for JavaScript is designed for building GIS applications with Esri's ArcGIS platform. Esri’s ArcGIS API for JavaScript helps to make interactive 2D and 3D maps utilizing the effective ArcGIS platform features.

Key Features:

  • Advanced Spatial Analysis: It offers effective spatial analysis capabilities such as buffering, vicinity investigation, spatial querying, and overlay operations. These devices empower designers to perform complex spatial operations straightforwardly inside their web applications.
  • Security and Verification: ArcGIS API gives strong security highlights, including verification components such as OAuth, to guarantee that sensitive geospatial information is protected.
  • Cross-platform Compatibility: The API is designed to work over different web browsers and platforms, including desktops, tablets, and portable devices.

9. Tangram

Tangram is a powerful and versatile JavaScript library for creating interactive maps with highly customizable styles and dynamic features. Its combination of performance, flexibility, and ease of use makes it a popular choice among developers for building engaging and informative mapping applications.

Key Features:

  • Custom Shaders: It supports custom shaders, enabling developers to apply advanced visual effects and create unique map styles that go beyond traditional cartography. This capability allows for creative expression and differentiation in map design.
  • High Performance: It is optimized for performance, delivering fast map rendering and smooth interactions even with complex map designs and large datasets. This makes it suitable for demanding applications where performance is crucial.

10. DataMaps

DataMaps is a truly flexible JavaScript mapping tool. It is incredible since it can be used for all sorts of projects, whether they are huge or little. With DataMaps, you get high-quality maps that see sharp, come in lots of distinctive colors, and can even be appeared from distinctive angles. Also, you can test your maps in different web browsers and with different plugins to make sure everything works perfectly.

Key Features:

  • Interactivity: DataMaps support interactive features such as tooltips, tap events, and hover effects, empowering clients to connected with map components and explore information in more detail.
  • Easy Integration with Information Sources: DataMaps libraries offer clear integration with different information sources, including JSON, CSV, and GeoJSON formats.
  • Export and Sharing: DataMaps libraries frequently provide features for sending out maps or sharing them through links or insert codes.
  • Marker Clustering: This make the map simpler to read, particularly when there are lots of markers close together. So, instead of showing each single marker, DataMaps can bunch them together to make things clearer, particularly when you have a ton of markers on the map.

Advantages of Creating Interactive Maps

  • Real-Time Upgrades: Interactive maps can be adjusted in real-time, approving clients to access the most display data. This is particularly helpful for applications such as route, and crisis response.
  • Mobile Availability: With the developing use of portable gadgets, interactive maps can be perfected for portable accessibility offering clients with access to location-based services on smartphones and tablets.
  • Save time: Making interactive maps from scratch is truly difficult. Mapping devices allow you ready-made functions, so you can concentrate on making your app work, without stressing about tricky mapping stuff.
  • Decision Support: Interactive maps can be used in choosing procedures by giving locational information. They are useful for finding the best spots, confirming for dangers, and finding the best routes.

Conclusion

In essence, the best 10 JavaScript libraries for making interactive maps present riches of choices for designers looking for to join dynamic geographic visualizations into their projects. Each library offers its own set of features, from simplicity to complexity, supplying to a wide range of needs and skill levels. By leveraging these libraries, designers can upgrade client engagement, simplify information visualization, and raise the overall client experience of their applications. With such flexible devices easily available, the journey to creating compelling interactive maps gets to be both accessible and rewarding for designers around the world.


Next Article
Top 10 JavaScript Libraries for Creating Interactive Maps
author
pooja162003yadav
Improve
Article Tags :
  • GBlog
  • JavaScript
  • Web Technologies
  • Web-Tech Blogs
  • GBlog 2025

Similar Reads

  • Top JavaScript Animation Libraries
    Sometimes you have seen some amazing cool animations on different websites or landing pages. It gives an appealing look to your websites when you add eye-catching animations. And animations are one of the most effective and efficient ways to attract users' attention to your website.But have you guys
    6 min read
  • Interactive Data Visualizations in JavaScript
    In this article we will learn about Interactive Data visualization in JavaScript, Data visualizations serve as a powerful tool for visually representing information and allowing viewers to easily perceive trends, patterns, and relationships in large datasets. Static visuals often fall short when pro
    3 min read
  • Top 7 JavaScript Frameworks & Libraries For Building Games in 2025
    Have you ever wondered how your favorite games come to life? Game development is zooming ahead at warp speed, and JavaScript is quickly becoming the superhero of this digital realm. With its growing arsenal of frameworks and libraries, it’s like a treasure chest for developers, offering everything t
    10 min read
  • Top 10 JavaScript Carousal Libraries used in 2023
    Javascript Carousal LibrariesA Carousal library is a library that is designed for easier and smoother development of the front end to make it more attractive. Basically, a carousel is a kind of slideshow that is used for cycling through a set of the content of our web page, desktop, or mobile applic
    6 min read
  • Top 10 JavaScript Libraries for Data Visualization [2025]
    JavaScript data visualization libraries help developers create interactive charts, graphs, and other visual components that bring data to life. JavaScript data visualization libraries have become the go-to tools for developers. These libraries don’t just create charts and graphs; they help tell stor
    8 min read
  • How to create an image map in JavaScript ?
    An image map is nothing but an image that is broken into various hotspots and each hotspot will take you to a different file. Hotspots are nothing but clickable areas which we create on an image by using the <area> tag. This type of map is called a client-side image map as the map is embedded
    3 min read
  • Top 7 JavaScript Frameworks and Libraries For Web Developers
    Many developers worldwide believe that JavaScript is the number one programming language, especially in the case of web development. JavaScript works well for both front-end and back-end development. Thanks to the enormous variety of frameworks and libraries, making websites with JavaScript is now e
    6 min read
  • Top 10 Javascript Libraries for Machine Learning and Data Science
    JavaScript is the programming language of the web which makes it pretty important! However, it has mostly been used as a scripting language in web development without much association with Machine Learning or Data Science as compared to R and Python. That's because R and Python are specifically suit
    6 min read
  • Creating a Simple Image Editor using JavaScript
    In this article, we will be creating a Simple Image Editor that can be used to adjust the image values like brightness, contrast, hue, saturation, grayscale, and sepia. Image editors allow one to quickly edit pictures after they have been captured for enhancing them or completely changing their look
    10 min read
  • LeafletJS - Interacting with Maps using JavaScript
    Maps have become an integral part of our everyday lives. From driving to a location to finding some restaurants or stores nearby or while planning travel, almost every type of app uses maps. Using maps helps us to add location-based services in our application.One way to add maps in a web applicatio
    9 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

'); // $('.spinner-loading-overlay').show(); let script = document.createElement('script'); script.src = 'https://assets.geeksforgeeks.org/v2/editor-prod/static/js/bundle.min.js'; script.defer = true document.head.appendChild(script); script.onload = function() { suggestionModalEditor() //to add editor in suggestion modal if(loginData && loginData.premiumConsent){ personalNoteEditor() //to load editor in personal note } } script.onerror = function() { if($('.editorError').length){ $('.editorError').remove(); } var messageDiv = $('
').text('Editor not loaded due to some issues'); $('#suggestion-section-textarea').append(messageDiv); $('.suggest-bottom-btn').hide(); $('.suggestion-section').hide(); editorLoaded = false; } }); //suggestion modal editor function suggestionModalEditor(){ // editor params const params = { data: undefined, plugins: ["BOLD", "ITALIC", "UNDERLINE", "PREBLOCK"], } // loading editor try { suggestEditorInstance = new GFGEditorWrapper("suggestion-section-textarea", params, { appNode: true }) suggestEditorInstance._createEditor("") $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = true; } catch (error) { $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = false; } } //personal note editor function personalNoteEditor(){ // editor params const params = { data: undefined, plugins: ["UNDO", "REDO", "BOLD", "ITALIC", "NUMBERED_LIST", "BULLET_LIST", "TEXTALIGNMENTDROPDOWN"], placeholderText: "Description to be......", } // loading editor try { let notesEditorInstance = new GFGEditorWrapper("pn-editor", params, { appNode: true }) notesEditorInstance._createEditor(loginData&&loginData.user_personal_note?loginData.user_personal_note:"") $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = true; } catch (error) { $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = false; } } var lockedCasesHtml = `You can suggest the changes for now and it will be under 'My Suggestions' Tab on Write.

You will be notified via email once the article is available for improvement. Thank you for your valuable feedback!`; var badgesRequiredHtml = `It seems that you do not meet the eligibility criteria to create improvements for this article, as only users who have earned specific badges are permitted to do so.

However, you can still create improvements through the Pick for Improvement section.`; jQuery('.improve-header-sec-child').on('click', function(){ jQuery('.improve-modal--overlay').hide(); $('.improve-modal--suggestion').hide(); jQuery('#suggestion-modal-alert').hide(); }); $('.suggest-change_wrapper, .locked-status--impove-modal .improve-bottom-btn').on('click',function(){ // when suggest changes option is clicked $('.ContentEditable__root').text(""); $('.suggest-bottom-btn').html("Suggest changes"); $('.thank-you-message').css("display","none"); $('.improve-modal--improvement').hide(); $('.improve-modal--suggestion').show(); $('#suggestion-section-textarea').show(); jQuery('#suggestion-modal-alert').hide(); if(suggestEditorInstance !== null){ suggestEditorInstance.setEditorValue(""); } $('.suggestion-section').css('display', 'block'); jQuery('.suggest-bottom-btn').css("display","block"); }); $('.create-improvement_wrapper').on('click',function(){ // when create improvement option clicked then improvement reason will be shown if(loginData && loginData.isLoggedIn) { $('body').append('
'); $('.spinner-loading-overlay').show(); jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.unlocked-status--improve-modal-content').css("display","none"); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { showErrorMessage(e.responseJSON,e.status) }, }); } else { if(loginData && !loginData.isLoggedIn) { $('.improve-modal--overlay').hide(); if ($('.header-main__wrapper').find('.header-main__signup.login-modal-btn').length) { $('.header-main__wrapper').find('.header-main__signup.login-modal-btn').click(); } return; } } }); $('.left-arrow-icon_wrapper').on('click',function(){ if($('.improve-modal--suggestion').is(":visible")) $('.improve-modal--suggestion').hide(); else{ } $('.improve-modal--improvement').show(); }); const showErrorMessage = (result,statusCode) => { if(!result) return; $('.spinner-loading-overlay:eq(0)').remove(); if(statusCode == 403) { $('.improve-modal--improve-content.error-message').html(result.message); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); return; } } function suggestionCall() { var editorValue = suggestEditorInstance.getValue(); var suggest_val = $(".ContentEditable__root").find("[data-lexical-text='true']").map(function() { return $(this).text().trim(); }).get().join(' '); suggest_val = suggest_val.replace(/\s+/g, ' ').trim(); var array_String= suggest_val.split(" ") //array of words var gCaptchaToken = $("#g-recaptcha-response-suggestion-form").val(); var error_msg = false; if(suggest_val != "" && array_String.length >=4){ if(editorValue.length { jQuery('.ContentEditable__root').focus(); jQuery('#suggestion-modal-alert').hide(); }, 3000); } } document.querySelector('.suggest-bottom-btn').addEventListener('click', function(){ jQuery('body').append('
'); jQuery('.spinner-loading-overlay').show(); if(loginData && loginData.isLoggedIn) { suggestionCall(); return; } // script for grecaptcha loaded in loginmodal.html and call function to set the token setGoogleRecaptcha(); }); $('.improvement-bottom-btn.create-improvement-btn').click(function() { //create improvement button is clicked $('body').append('
'); $('.spinner-loading-overlay').show(); // send this option via create-improvement-post api jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { showErrorMessage(e.responseJSON,e.status); }, }); });
"For an ad-free experience and exclusive features, subscribe to our Premium Plan!"
Continue without supporting
`; $('body').append(adBlockerModal); $('body').addClass('body-for-ad-blocker'); const modal = document.getElementById("adBlockerModal"); modal.style.display = "block"; } function handleAdBlockerClick(type){ if(type == 'disabled'){ window.location.reload(); } else if(type == 'info'){ document.getElementById("ad-blocker-div").style.display = "none"; document.getElementById("ad-blocker-info-div").style.display = "flex"; handleAdBlockerIconClick(0); } } var lastSelected= null; //Mapping of name and video URL with the index. const adBlockerVideoMap = [ ['Ad Block Plus','https://media.geeksforgeeks.org/auth-dashboard-uploads/abp-blocker-min.mp4'], ['Ad Block','https://media.geeksforgeeks.org/auth-dashboard-uploads/Ad-block-min.mp4'], ['uBlock Origin','https://media.geeksforgeeks.org/auth-dashboard-uploads/ub-blocke-min.mp4'], ['uBlock','https://media.geeksforgeeks.org/auth-dashboard-uploads/U-blocker-min.mp4'], ] function handleAdBlockerIconClick(currSelected){ const videocontainer = document.getElementById('ad-blocker-info-div-gif'); const videosource = document.getElementById('ad-blocker-info-div-gif-src'); if(lastSelected != null){ document.getElementById("ad-blocker-info-div-icons-"+lastSelected).style.backgroundColor = "white"; document.getElementById("ad-blocker-info-div-icons-"+lastSelected).style.borderColor = "#D6D6D6"; } document.getElementById("ad-blocker-info-div-icons-"+currSelected).style.backgroundColor = "#D9D9D9"; document.getElementById("ad-blocker-info-div-icons-"+currSelected).style.borderColor = "#848484"; document.getElementById('ad-blocker-info-div-name-span').innerHTML = adBlockerVideoMap[currSelected][0] videocontainer.pause(); videosource.setAttribute('src', adBlockerVideoMap[currSelected][1]); videocontainer.load(); videocontainer.play(); lastSelected = currSelected; }

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences