OpenGuides
view release on metacpan or search on metacpan
0.84 22 December 2020
Switch to HTTPS for map tiles and icons, to avoid mixed-content
warnings.
Use Wiki::Toolkit 0.86 to fix issues with modern versions of MySQL
Allow configuration of OpenGuides using environment variables
Add a Dockerfile which runs OpenGuides under Plack
0.83 06 January 2020
Remove use of MapQuest tiles, as they're no longer available.
Add full CGI URL to popups on map search results, so they can be
used in addon scripts.
Fix broken version link in ?action=about
Make sure index pages don't offer page deletion links.
Upgrade Leaflet version to 1.1.0.
Make sure HTTPS website links are truncated in same way as HTTP.
Stop escaping commas in URLs in places that got missed last time.
Attempts to autocreate categories/locales with underscores in the name
will now see all underscores changed to spaces.
0.82 05 June 2016
lib/OpenGuides/CGI.pm view on Meta::CPAN
metadata_type => "category",
metadata_value => $args{type},
ignore_case => 1,
);
@options = map { s/^Category //; s/^Locale //; $_ } @options;
my %labels = map { lc( $_ ) => $_ } @options;
my @values = sort keys %labels;
my $default = lc( $args{value} || "");
my $q = CGI->new( "" );
return $q->popup_menu( -name => $field_name,
-class => "$args{type}_index",
-values => [ "", @values ],
-labels => { "" => $any_label, %labels },
-default => $default );
}
=back
=head1 AUTHOR
static/map-leaflet.js view on Meta::CPAN
var full_cgi_url, centre_lat, centre_long, min_lat, min_long, max_lat, max_long, map, map_div_id;
var positions = [], markers = [];
var gicon = L.Icon.extend( {
options: {
iconUrl: 'https://maps.google.com/mapfiles/ms/micons/red-dot.png',
shadowUrl: null,
iconSize: new L.Point( 32, 32 ),
iconAnchor: new L.Point( 15, 32 ),
popupAnchor: new L.Point( 0, -30 )
}
} );
$(
function() {
if ( map_div_id && centre_lat && centre_long ) {
var map_centre = new L.LatLng( centre_lat, centre_long );
var osm_layer = new L.TileLayer(
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' );
( run in 2.654 seconds using v1.01-cache-2.11-cpan-364913b4093 )