close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Flag not showing

Thread began 3/01/2009 8:24 pm by jules.webb286095 | Last modified 5/16/2009 2:49 am by jules.webb286095 | 9543 views | 21 replies

nathan346535

No Marker showing

Hi,
I am having the same problem with no marker showing on my map.
I am in a local environment at the moment and my map looks fine apart from the fact there is no marker showing.

I have copied the images locally and refer to them in my code to see if that made any difference but so far no joy.

My created js file reads as below:
function wagt_map_2() {
if(GBrowserIsCompatible()) {
if(!document.getElementById('wagt_map_2')) return false;
var map = new GMap2(document.getElementById('wagt_map_2'));
map.enableContinuousZoom();
map.enableDoubleClickZoom();
map.addControl(new GSmallZoomControl());
var geocoder = new GClientGeocoder();

var icon = new GIcon();
var markerStyle = 'Flag';
var markerColor = 'Pacifica';
icon.image = '_img/pacifica.png';
icon.shadow = '../_img/shadow.png';
icon.iconSize = new GSize(31,35);
icon.shadowSize = new GSize(31,35);
icon.iconAnchor = new GPoint(4,27);
icon.infoWindowAnchor = new GPoint(8,3);
icon.printImage = '_img/pacifica.gif';
icon.mozPrintImage = '_img/pacifica_mozprint.png';
icon.printShadow = '../_img/shadow.gif';
icon.transparent = '../_img/pacifica_transparent.png';

var address_0 = {
street: 'XXXX',
city: 'XXXXX',
state: 'XXXX',
zip: 'CH5 2UA',
country: 'United Kingdom',
infowindow: 'default',
infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Address:</strong><br />CH52UA United Kingdom</span>',
full: 'CH52UA, United Kingdom',
isdefault: true
};

geocoder.getLatLng (
address_0.full,
function(point) {
if(point) {
map.setCenter(point, 13);
var marker = new GMarker(point, icon);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(address_0.infowindowtext);
});
map.addOverlay(marker);
marker.openInfoWindowHtml(address_0.infowindowtext);
}
else {
map.setCenter(new GLatLng(53.23486238365943, -3.022785186767578), 13);
}
}
);

}
}

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...