Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- var containerId = '#main';
- //create map centre point
- var latitude = 50.007656;
- var longitude = 19.95276;
- var startPoint = new google.maps.LatLng(latitude, longitude);
- //create default map options
- var mapOptions = {
- zoom: 8,
- center: startPoint,
- mapTypeId: google.maps.MapTypeId.ROADMAP
- };
- //create a map object
- var map = new google.maps.Map($(containerId)[0], mapOptions);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement