Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var pyrmont = new google.maps.LatLng(-33.8665433,151.1956316);
- function initializeGoogleMaps() {
- jQuery('.site-content').prepend('<div id="map-container"><div id="map-canvas"></div></div>');
- var request = {
- placeId: 'ChIJzXBGLkQFdkgRoyT2MIxgWGw'
- };
- function callback(place, status) {
- if (status == google.maps.places.PlacesServiceStatus.OK) {
- var marker = new google.maps.Marker({
- map: map,
- position: place.geometry.location
- });
- }
- }
- var map = new google.maps.Map(document.getElementById('map-canvas'), {
- center: {
- lat: 51.509526,
- lng: -0.156314
- },
- zoom: 15
- });
- service = new google.maps.places.PlacesService(map);
- service.getDetails(request, callback);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement