1. Bruce Hatton
  2. Newbie area
  3. Monday, 01 August 2011
  4.  Subscribe via email
Using Global Mapper (http://www.globalmapper.com) I have created a set of of tiles and the code to overlay them on a Google Map. See http://beta.africamaps.cc/overlay/index.htm
http://beta.africamaps.cc/overlay/Cape Overlay.PNG

I am guessing that a modified version of the code could be added into the Hotspots component, but I would need some serious guidance on how to do this and where exactly in which file to place it.

Can anybody help? (in a very detailed reply, as my coding skills are zero.)

The code produced by Global Mapper is as follows:





Cape Overlay



var G = google.maps;
var map;

var customMapType = new G.ImageMapType
(
{
getTileUrl: function(coord, zoom)
{
var normalizedCoord = getNormalizedCoord(coord, zoom);
if (!normalizedCoord) { return null; }

if ( zoom == 6 && normalizedCoord.x >= 35 && normalizedCoord.x = 38 &&

normalizedCoord.y = 70 && normalizedCoord.x = 76 &&

normalizedCoord.y = 140 && normalizedCoord.x = 152 &&

normalizedCoord.y = 280 && normalizedCoord.x = 304 &&

normalizedCoord.y = 561 && normalizedCoord.x = 609 &&

normalizedCoord.y
Responses (9)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now

Last questions

Complete Uninstall to Work in J4??
We have recently updated a site from Joomlav3 to v4 (4.4.2). Now when we go to m...
7 Replies
Posted on Tuesday, 30 April 2024
Info about CMigrator for Joomla
Hi i need to import a few thousand articles from a site made in wordprres to a ...
0 Replies
Posted on Tuesday, 07 May 2024
  • New
    • #CMigator
    Error on android phone
    Why its working good on Computer and if i try it with smartphones the map dosent...
    0 Replies
    Posted on Tuesday, 07 May 2024
  • New
  • Bug with front-end submission and table not having
    Hi, i think i found a problem. When trying to edit a hotspot from front-end ...
    3 Replies
    Posted on Wednesday, 15 March 2023
    Question regarding custom fields
    How do I access custom fields after I have created them?...
    1 Replies
    Posted on Wednesday, 24 April 2024
    • #custom fields