diff --git a/examples/spotlight/index.html b/examples/spotlight/index.html index b545fa5..b75fb27 100644 --- a/examples/spotlight/index.html +++ b/examples/spotlight/index.html @@ -1,41 +1,44 @@ - - ModestMaps: Spotlight Effect with HTML Canvas - - - + + - - - -

Spotlight effect

+ var locations = [ + new MM.Location(37.804, -122.252), + new MM.Location(37.764, -122.419) + ]; + locations.forEach(function(loc) { + layer.addLocation(loc); + }); + } + + + + +

Spotlight effect

-
-
- +

The spotlights on this map are pinned to two geographic locations. Check + out the Crimespotting-inspired example.

+ +
+
+ diff --git a/examples/spotlight/markers.html b/examples/spotlight/markers.html index 7a24fd1..2c9f2dd 100644 --- a/examples/spotlight/markers.html +++ b/examples/spotlight/markers.html @@ -182,6 +182,15 @@

ModestMaps JS: GeoJSON Markers + Spotlight Effect

+ +

This example mimics the behavior of Crimespotting + (inspired by the Mac OS X feature), + highlighting reports of the same type whenever you mouse over one.

+ +

This example requires a web browser with + HTML canvas + support.

+