Last active
December 18, 2015 16:40
-
-
Save volkanceylan/84ff9ea651e2f588df87 to your computer and use it in GitHub Desktop.
Add Google map to Serene dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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