Giter Site home page Giter Site logo

landsurveyorsunited / tooltip-for-google-maps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from medelbou/tooltip-for-google-maps

0.0 2.0 0.0 268 KB

Simple JavaScript class to create a tooltip in Google Maps JavaScript API V3

Home Page: http://medelbou.com/demos/google-maps-tooltip/

License: Other

CSS 4.72% HTML 49.43% JavaScript 45.84%

tooltip-for-google-maps's Introduction

Simple class to create a tooltip in Google Maps JavaScript API V3. This is based on the example given in the Google Maps API documentation, [see it here][lk]. [lk]: http://code.google.com/apis/maps/documentation/javascript/overlays.html#CustomOverlays

For comments/suggestions, email me at me[at]medelbou[dot]com.

How to use

<script src="http://maps.googleapis.com/maps/api/js?sensor=true"></script>
<script src="js/tooltip.js"></script>
//after the map is ready..
// Tooltip Options   
var tooltipOptions={
  marker:marker,// required
  content:content,// required
  cssClass:'tooltip' // name of a css class to apply to tooltip
};
var tooltip = new Tooltip(tooltipOptions);

tooltip-for-google-maps's People

Contributors

medelbou avatar

Watchers

Justin Farrow avatar James Cloos avatar

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.