Jump to content

ad needle on google maps api ?

Fredrikmikael
Go to solution Solved by Fredrikmikael,

some tematics are recurrent to say the least

"what language should i learn first?"

"what language should i learn first to make gamez?"

 

i had forgot about that post i made, hehe.

 

but atleast i managed to do it

<script>				function initialize() {					var myLatlng = new google.maps.LatLng(69.662041,18.956823);					var mapOptions = {						zoom: 16,						center: myLatlng					}										var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);					var marker = new google.maps.Marker({						position: myLatlng,						map: map,						title: 'TBT!'					});				}				google.maps.event.addDomListener(window, 'load', initialize);			</script>

hello i want to add a google maps red needle on the API window on my website

 

<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>      function initialize() {        var map_canvas = document.getElementById('map_canvas');        var map_options = {          center: new google.maps.LatLng(69.661791,18.956413),          zoom: 16,          mapTypeId: google.maps.MapTypeId.ROADMAP        }        var map = new google.maps.Map(map_canvas, map_options)      }      google.maps.event.addDomListener(window, 'load', initialize);    </script>
<style>#map_canvas {width: 240px;height: 225px;}</style>
 
 
 
how do i add the needle/red marker  ?

System

Spoiler

CPU: Intel Core i7 5820K @4.5GHz - 1.230v  RAM: HyperX Fury DDR4 4x4GB 2666MHz  MB: MSI X99S SLI PLUS  CASE: NZXT H440  CPU-COOLER: Fractal Design Kelvin S24  PSU: Corsair RM1000W w/ white sleeved cable kit  GPU: MSI GeForce RTX 2070 ARMOR  MONITOR: LG 27GL850-B  STORAGE: Samsung 970 EVO 1TB M.2, Samsung 840 EVO 256GB,  WD Red 3TB

 

 

 

 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

there has been a discussion about this on the forum, try check it out

I really should start linking to reposts aswell, normally I'd just ignore them but it's about time to fix this up!

Link to comment
Share on other sites

Link to post
Share on other sites

I really should start linking to reposts aswell, normally I'd just ignore them but it's about time to fix this up!

some tematics are recurrent to say the least

"what language should i learn first?"

"what language should i learn first to make gamez?"

Link to comment
Share on other sites

Link to post
Share on other sites

some tematics are recurrent to say the least

"what language should i learn first?"

"what language should i learn first to make gamez?"

 

i had forgot about that post i made, hehe.

 

but atleast i managed to do it

<script>				function initialize() {					var myLatlng = new google.maps.LatLng(69.662041,18.956823);					var mapOptions = {						zoom: 16,						center: myLatlng					}										var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);					var marker = new google.maps.Marker({						position: myLatlng,						map: map,						title: 'TBT!'					});				}				google.maps.event.addDomListener(window, 'load', initialize);			</script>

System

Spoiler

CPU: Intel Core i7 5820K @4.5GHz - 1.230v  RAM: HyperX Fury DDR4 4x4GB 2666MHz  MB: MSI X99S SLI PLUS  CASE: NZXT H440  CPU-COOLER: Fractal Design Kelvin S24  PSU: Corsair RM1000W w/ white sleeved cable kit  GPU: MSI GeForce RTX 2070 ARMOR  MONITOR: LG 27GL850-B  STORAGE: Samsung 970 EVO 1TB M.2, Samsung 840 EVO 256GB,  WD Red 3TB

 

 

 

 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×