Skip to content

Instantly share code, notes, and snippets.

@volkanceylan
Last active December 18, 2015 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save volkanceylan/84ff9ea651e2f588df87 to your computer and use it in GitHub Desktop.
Save volkanceylan/84ff9ea651e2f588df87 to your computer and use it in GitHub Desktop.
Add Google map to Serene dashboard
@section ContentHeader {
<h1>@LocalText.Get("Navigation.Dashboard")<small>@Html.Raw(Texts.Site.Dashboard.ContentDescription)</small></h1>
<script src="https://maps.googleapis.com/maps/api/js"></script>
}
<div id="MapContainer" style="width: 700px; height: 400px;">
</div>
<script type="text/javascript">
$(function() {
new Serenity.GoogleMap($('#MapContainer'), {
latitude: 11,
longitude: 12,
zoom: 10,
markerTitle: 'The Company',
markerLatitude: 11,
markerLongitude: 12
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment