Tu ubicación en un mapa de google
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 - 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);
Developer | Arkev |
Username | arkev |
Uploaded | August 10, 2022 |
Rating | 3 |
Size | 2,803 Kb |
Views | 26,312 |
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!
Name | Size |
Snake game using HTML5 | 3,114 Kb |
3D font HTML5 CSS3 | 2,319 Kb |
Fake Login page with jQuery | 4,733 Kb |
Slider vertical | 5,978 Kb |
Leyenda de Tifis | 2,919 Kb |
Encabezados persistentes | 3,489 Kb |
Mapa hgm prueba | 2,781 Kb |
CSS3 pricing table | 3,204 Kb |
Pure CSS3 breadcrumb navigation | 3,222 Kb |
Page Preloading Effect | 10,898 Kb |
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!
Name | Username | Size |
My three.js practice | Esambino | 3,203 Kb |
Menu | Vivi_Lai | 1,210 Kb |
ABVI Menu Discarded | Overdrivemachines | 3,607 Kb |
Tree growth tests | Orchard | 3,818 Kb |
Sort the Knowlege | Eprouver | 3,915 Kb |
Em Test | Rodesco | 1,784 Kb |
Pink expansion tunnel | Vez | 1,738 Kb |
A Pen by Jess | Jessamyne | 5,100 Kb |
A vuejs widget | Chrgl86 | 2,869 Kb |
Main page display | BarryKe | 4,562 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!