Database Reference
In-Depth Information
&t=h
This specifies the type of map ( t=m is a map, t=h is a satellite view).
&output=embed
This is a key parameter that makes sure the website we embed in our Dashboard
doesn't include the entire site, just the map itself.
3. We could then generalize the URL to:
https://maps.google.com/
maps?q=<Latitude>,<Longitude>&z=17&t=h&output=svembed
Notice that the actual numbers for Latitude and Longitude have been replaced with
field names <Latitude> and <Longitude> .
Alternately, we could embed Google Static Maps using the Static Maps API, which is docu-
mented here . In that case, the generic URL would be similar to:
https://maps.googleapis.com/maps/api/stat-icmap?center=<Latitude>,+<Longitude>&zoom=17&
size=460x340&maptype=satellite&markers=color:blue%7C<Latitude>,<Longitude>
Adding Dynamic Google Maps Satellite Images to Our Dashboard
The next group of steps shows how to edit the Web Page object such that when a user clicks
on a particular circle in the top map, the embedded satellite image changes to show the loca-
tion selected:
1. First, in the Dashboard tab, drag a new Web Page object (or edit the one we added in
Figure 14-14 ) onto the Dashboard from the left-center panel (just leave the Edit URL
dialog box blank and click OK for now).
2. From the Dashboard file menu, click Actions , then click the Add Action button and
choose URL... .
3. In the Add URL Action dialog box, select the Sheet or Sheets that you want to use as
the source for the action, and choose which event you'd like to trigger navigation to
the new image ( Hover , Select , or Menu ). In this case, I've selected CCTV and Loca-
tions as my Source Sheets and Select as my trigger event, but you could trigger the
action from a table or other type of sheet.
Search WWH ::




Custom Search