Tu ubicación en un mapa de google

Developer
Size
2,803 Kb
Views
26,312

How do I make an tu ubicación en un mapa de google?

Código para la clase de programación básica. What is a tu ubicación en un mapa de google? How do you make a tu ubicación en un mapa de google? This script and codes were developed by Arkev on 10 August 2022, Wednesday.

Tu ubicación en un mapa de google Previews

Tu ubicación en un mapa de google - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Tu ubicación en un mapa de google</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ *,
*:before,
*:after { box-sizing: border-box;
}
html,
body { height: 100%;
}
#map { width: 100%; height: 100%;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="map"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://maps.google.com/maps/api/js?sensor=false'></script> <script src="js/index.js"></script>
</body>
</html>

Tu ubicación en un mapa de google - Script Codes CSS Codes

*,
*:before,
*:after { box-sizing: border-box;
}
html,
body { height: 100%;
}
#map { width: 100%; height: 100%;
}

Tu ubicación en un mapa de google - Script Codes JS Codes

//Variables
var map;
//Funciones
function initialize(pos) { // Create an array of styles. var styles = [ { featureType: "all", elementType: "all", stylers: [ { invert_lightness: true }, { saturation: 10 }, { lightness: 30 }, { gamma: 0.5 }, { hue: "#435158" } ] } ]; // Create a new StyledMapType object, passing it the array of styles, // as well as the name to be displayed on the map type control. var styledMap = new google.maps.StyledMapType(styles, {name: "Styled Map"}); lat = pos.coords.latitude; long = pos.coords.longitude; var mapOptions = { zoom: 21, draggable : true, disableDoubleClickZoom: true, mapTypeControl:false, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, }, mapTypeId: google.maps.MapTypeId.ROADMAP, overviewMapControl: false, overviewMapControlOptions: { opened: false, }, panControl: false, scaleControl: false, scrollwheel: false, zoom: 15, zoomControl: true, zoomControlOptions: { style: google.maps.ZoomControlStyle.LARGE, }, center: new google.maps.LatLng(lat, long), mapTypeControlOptions: { mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style'] } }; map = new google.maps.Map(document.getElementById('map'), mapOptions); var marker = new google.maps.Marker({ position: new google.maps.LatLng(lat, long), map: map, title:"Tu posición" }); //Associate the styled map with the MapTypeId and set it to display. map.mapTypes.set('map_style', styledMap); map.setMapTypeId('map_style');
}
//DOM
navigator.geolocation.getCurrentPosition(initialize);
google.maps.event.addDomListener(window, 'load', initialize);
Tu ubicación en un mapa de google - Script Codes
Tu ubicación en un mapa de google - Script Codes
Home Page Home
Developer Arkev
Username arkev
Uploaded August 10, 2022
Rating 3
Size 2,803 Kb
Views 26,312
Do you need developer help for Tu ubicación en un mapa de google?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Arkev (arkev) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!