Esa's Google Maps API experiments. |
|
map.borderWatcher()Drag the map. The border color should change when a marker goes outside the map. borderWatcher() is a GMap2() method to test if a GLatLngBounds() object crosses maps viewport borders. It is an extension for Google Maps Api. The method adds css-classnames to maps container element and returns an array of four booleans [top, right, bottom, left]. In this page The returned booleans are not used for anything in this example but you can give birth for some ideas. There are four css classnames for highlighting, one for each border. Defaults are You, as a CSS guru, can make much more fascinating borders than those in my example. To start testing, download the borderwatcher.js code and
add Upload the borderwatcher.js code to your serverspace. By hotlinking you accept any kind of stunning surprises on your page. |
|
|
|