7
9
# Copyright (C) 2007-2009 Stephane Charette <stephanecharette@gmail.com>
8
10
# Copyright (C) 2008 Brian G. Matherly
9
11
# Copyright (C) 2008 Jason M. Simanek <jason@bohemianalps.com>
10
# Copyright (C) 2008-2009 Rob G. Healey <robhealey1@gmail.com>
12
# Copyright (C) 2008-2011 Rob G. Healey <robhealey1@gmail.com>
12
14
# This program is free software; you can redistribute it and/or modify
13
15
# it under the terms of the GNU General Public License as published by
24
26
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27
# $Id: libhtmlconst.py 17994 2011-08-06 17:09:09Z robhealey1 $
29
# $Id: libhtmlconst.py 18645 2011-12-21 00:44:16Z robhealey1 $
30
32
General constants used in different html enabled plugins
117
119
_('No copyright notice'),
120
# NarrativeWeb javascript code for PlacePage's "Google Maps"...
122
var myLatlng = new google.maps.LatLng(%s, %s);
124
function initialize() {
127
mapTypeId: google.maps.MapTypeId.ROADMAP,
130
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
132
var marker = new google.maps.Marker({
135
animation: google.maps.Animation.DROP,
138
google.maps.event.addListener(marker, 'click', toggleBounce);
141
function toggleBounce() {
142
if (marker.getAnimation() != null) {
143
marker.setAnimation(null);
145
marker.setAnimation(google.maps.Animation.BOUNCE);
149
# NarrativeWeb javascript code for PlacePage's "Open Street Map"...
151
OpenLayers.Lang.setCode("%s");
153
map = new OpenLayers.Map("map_canvas");
154
var osm = new OpenLayers.Layer.OSM()
157
var lonLat = new OpenLayers.LonLat(%s, %s)
159
new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984
160
map.getProjectionObject() // to Spherical Mercator Projection
163
map.setCenter(lonLat, zoom);
165
var markers = new OpenLayers.Layer.Markers("Markers");
166
markers.addMarker(new OpenLayers.Marker(lonLat));
167
map.addLayer(markers);
169
// add overview control
170
map.addControl(new OpenLayers.Control.OverviewMap());
172
// add a layer switcher
173
map.addControl(new OpenLayers.Control.LayerSwitcher());"""