Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3479 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted (edited)

Hi there,

I am using EasyMaps and trying to integrate into my own solution. I am loving it so far, however, I have run into issues when trying to create infoWindow on Marker Click.

I had it working within maps as a standalone setup in my database before I integrated EasyMaps but now i can only load a blank screen.

Here is my code. I know it's flawed, I just don't know where lol.

"<!DOCTYPE html>¶
<html>¶
<head>¶
<meta name=\"viewport\" content=\"initial-scale=1.0, user-scalable=no\">¶
<meta charset=\"utf-8\">¶
<title>FMEasyMaps " & Get ( CurrentTimestamp ) & "</title>¶
<style>¶
html, body, #map-canvas {¶
height: 100%;¶
margin: 0px;¶
padding: 0px¶
}¶
</style>¶
¶
<script src=\"http://maps.googleapis.com/maps/api/js?key=[[API_KEY]]&v=3.exp&sensor=false\"></script>¶
¶
<script>¶
¶
function initialize() {¶
¶
var positionLatlng = new google.maps.LatLng([[START_COORDS]]);¶
¶
var mapOptions = ( {¶
zoom: 5,¶
center: positionLatlng¶
} );¶
¶
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);¶
¶
var contentString = '<div id=\"content\">'+¶
      '<div id=\"siteNotice\">'+¶
      '</div>'+¶
      '<h1 id=\"firstHeading\" class=\"firstHeading\">Tony McShane</h1>'+¶
      '<div id=\"bodyContent\">'+¶
      '<p><b>TONY</b>, also referred to as <b>Epic Douchebag</b>, is a dude from cranny' +¶
     '</p>'+¶
      '<div id=\"link_div\" style=\"text-align:centre\">'+¶
      '<a href=\"fmp://REMOVED/iCOMPLI%20Auditor_Tenancy%20Lite%20MetCash%20upgrade.fmp12?script=goto_iCompli%20Map%20Info%20Window%20Button%20Click%20TEST\">View Client Record</a>'+¶
      '</div>'+¶
      '</div>'+¶
      '</div>';¶
¶     
  var infowindow = new google.maps.InfoWindow({¶
      content: contentString¶
¶    
  });¶
¶
  });¶
 ¶
var bounds = new google.maps.LatLngBounds();¶
¶
[[MARKERS]]¶
¶
  google.maps.event.addListener(marker, 'click', function() {¶
    infowindow.open(map,marker);¶
  });¶
¶
map.fitBounds(bounds);¶
¶
}¶
¶
google.maps.event.addDomListener(window, 'load', initialize);¶
¶
</script>¶
</head>¶
<body>¶
<div id=\"map-canvas\"></div>¶
</body>¶
</html>"

Any help would be appreciated.

Edited by Lloyd Hird
Missed some info
  • Newbies
Posted

Actually.........never mind...........I just realised this is a really stupid question!!!

 

For all of you that did the same as me and did not read the instructions correctly, the answer to the above question can be found in the EM_Info field.

 

Cheers

This topic is 3479 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.