my goal:
get a maker with number when i display a map (with googlemap) on my desktop Browser
Actually
I use revBrowser to display a map with maker, work fin. For that i use the code i use a html script from Livecode Forum To Bangkok.
After this code i have a nice map with maker without number.
Code: Select all
--- here my data, name of the marker and geocode of the marker, one per line
local leNom,lesCoordonnees
repeat for each line K in theKeys
put aTraiter[K]["nom"] into leNom
put aTraiter[K]["adresse"] into lescoordonnees
--initialisation du MARKER
put "var latlngPos"&K&" = new google.maps.LatLng("&lesCoordonnees&");"&cr after lesData1
put "var marker = new google.maps.Marker({"&cr after lesData2
put "position: latlngPos"&K&","&cr after lesData2
put " map: map,"&cr after lesData2
put "title: ""e&leNom"e&"});"&cr after lesData2
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PC Pro - Google Maps Simple Example</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
$(document).ready(function () {
// Define the latitude and longitude positions
var latlngPos1 = new google.maps.LatLng(47.1199293,-1.9494228);
var latlngPos2 = new google.maps.LatLng(47.2290109,-2.1750371);
var latlngPos3 = new google.maps.LatLng(47.2764510,-1.7805900);
// Set up options for the Google map
var myOptions = {
zoom: 10,
center: latlngPos1,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
// Define the map
map = new google.maps.Map(document.getElementById("map"), myOptions);
// Add the marker
var marker = new google.maps.Marker({
position: latlngPos1,
map: map,
title: "Nom 1‘l"});
var marker = new google.maps.Marker({
position: latlngPos2,
map: map,
title: "Nom 2"});
var marker = new google.maps.Marker({
position: latlngPos3,
map: map,
title: "NOM 3"});
});
</script>
</head>
<body>
<div id="map" style="width:1200px;height:650px;margin-top:10px;"></div>
</body>
</html>
Thank you
Have a nice day