View Full Version : Flag not showing
jules.webb286095
03-01-2009, 08:24 PM
I am using Dreamweaver CS3 and the current version of Pro Maps for Google on a page that includes a form to return directions. I am having a problem with the flag/marker not showing up on the map in the browser window(ie, safari, firefox) The map shows up fine--- I already did:
var fromAddress = {
enabled: false,
and the directions show up when I submit the form.
The image comes from an absolute link on the newly designed webassist site and I am wondering if the link is no longer correct, see below:
icon_0.image = 'http://google.webassist.com/google/markers/flag/deepjungle.png';
icon_0.shadow = 'http://google.webassist.com/google/markers/flag/shadow.png';
If I mouse over where the flag should be I do get the pointer icon and I can click to open the address bubble.
Anybody got any thoughts on this?
Thanks!
Jules
Ray Borduin
03-02-2009, 07:59 AM
It appears we didn't properly move the images over when launching the new site.
We will have this corrected later today.
Another option is that you could search for those images on your local computer and put them in a location on your site so you can refer to them locally.
We will also be releasing a dot release soon that will create a copy of those images locally for you automatically to prevent this problem from ever occurring in the future.
Ray Borduin
03-02-2009, 09:40 AM
We have resolved this issue. It should be working now. Thank you for bringing this to our attention.
jules.webb286095
03-02-2009, 11:28 AM
Yep all is well thank you very much! I love your new site and definitely prefer the vBulletin forum over your old forum, AND you've organized it in a way that will make it soooo much easier to find answers--- well once there are some answers. It is too bad that you are unable to bring all old threads along for the ride, but your new site does look GREAT and in the long run the new, vastly improved forum will prove worth the inconvenience:-)
Cheers!
Jules
paul147992
03-05-2009, 08:07 AM
Hello,
I am not sure how you resolved your missing map icons. I have 2 different maps both pull data from a database to show multiple locations. Last night it was working perfectly and this morning *poof* no flag icons. If I click on a building that I know has a "hot spot" the bubble appears so my data is there, just no icon to show where to click.
Any thoughts on how to resolve this would be greatly associated.
Thanks,
Paul
Ray Borduin
03-05-2009, 08:18 AM
What is the URL for the page that isn't working? I will look into it.
paul147992
03-05-2009, 08:39 AM
I have it on my local machine using the generic API key as the remote site doesn't have the domain name pointed to it yet.
Any thoughts on what I should check?
I have the maps on two different pages:
1) Map 1 grabs all of the addresses from a database and displays multiple locations
2) Map 2 uses a filtered recordset to show only one location based off of that business primary key.
My google_javascript directory has the following files:
- wagmp_map_1.cfm
- wagmp_map_2.cfm
- wagmp_maps.js
I can provide more information or code snippets or email the files, I am not sure what is the best approach at this point.
I am open for any suggestions
Thanks for the quick reply
Paul
Ray Borduin
03-05-2009, 09:25 AM
I would look at the code to see what flag location is referenced and then see if that flag location is valid, if not, let us know what images are missing on the new server and we can put them back up.
You would look in your map files you noted for the image references.
paul147992
03-05-2009, 11:59 AM
Hello,
I looked through the one map file and I found this:
-----------------------------------------------------------------
var icon_0 = new GIcon();
icon_0.image = 'http://google.webassist.com/google/markers/flag/moab.png';
icon_0.shadow = 'http://google.webassist.com/google/markers/flag/shadow.png';
icon_0.iconSize = new GSize(31,35);
icon_0.shadowSize = new GSize(31,35);
icon_0.iconAnchor = new GPoint(4,27);
icon_0.infoWindowAnchor = new GPoint(8,3);
icon_0.printImage = 'http://google.webassist.com/google/markers/flag/moab.gif';
icon_0.mozPrintImage = 'http://google.webassist.com/google/markers/flag/moab_mozprint.png';
icon_0.printShadow = 'http://google.webassist.com/google/markers/flag/shadow.gif';
icon_0.transparent = 'http://google.webassist.com/google/markers/flag/moab_transparent.png';
-----------------------------------------------------------------
When I try and view the image paths in the browser I receive a connection interrupted error.
I didn't realize that this app called remotely for the images. No wonder I couldn't find them
jules.webb286095
03-05-2009, 12:02 PM
Hey guys,
My flag icon and shadow are gone again too. Can you double check the mapping to the files again?
thanks ~Jules
Ray Borduin
03-05-2009, 12:20 PM
This was an issue with our new server not having the google.webassist.com dns registered. We have addressed the issue, but it could take up to 24 hours to propogate throughout the web.
For now you can update google.webassist.com to www.webassist.com and it should work properly.
jules.webb286095
03-05-2009, 12:38 PM
Thanks for the update Ray. My site is still in production and not live so no big deal for me, besides it's on my list to take the images and copy them to my local machine like you suggested earlier.
Thanks for all your help!
Jules
paul147992
03-05-2009, 01:24 PM
Thank you,
It is now working properly with the flag icons showing as they should.
Did you have an issue with the server that the images were stored on? If this happens often can I download the images from somewhere and call them from my server?
I appreciate the quick and efficient help and the new forums are MUCH better than the previous ones.
Thanks,
Paul
Ray Borduin
03-05-2009, 02:52 PM
Yes, you can download and host them locally.
Really this is a one-time problem associated with the switching of our web servers, so it shouldn't be much of a concern.
We will be releasing a dot release soon as well which will automatically create and reference a local version of the images, you of course could make that update on your own now. Just download them and change the reference in the code.
nathan346535
03-06-2009, 07:02 AM
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);
}
}
);
}
}
Ray Borduin
03-06-2009, 09:00 AM
It should work. Remember the paths to the images should be relative to the page where the map is shown, not the js file where you are adding them.
jules.webb286095
03-16-2009, 05:34 PM
Just thought I would make a quick follow up note.
In testing in IE6 I found that the map markers weren't showing (even when they were in all other browsers). After I copied and mapped the image files to my local site IE6 showed the markers just fine.
Cheers!
Jules
info105077
05-08-2009, 11:33 AM
Hi just bought the pro maps app and realized I couldn't get the flags to show and that this may not be resolved any news (using a mac safari and firefox).
Do they need to be stored on the webassist server? can't they be hosted locally on the site server even referencing a logo perhaps?
Thanks
Ray Borduin
05-11-2009, 07:50 AM
The new version should be referencing local files. Do you have a url where you are having the problem where I can look into it further?
site342605
05-15-2009, 11:59 AM
Hi
After upgrading to 1.04 my flags are not showing either. What do you mean by local referencing. How is this done and why have you changed something that worked before?
I have over 75 maps does this mean I have to go and change every single map?
Thanks,
Jim
Ray Borduin
05-15-2009, 12:01 PM
You don't have to change anything that is still working.
It now creates a local version of the images, if they aren't showing it is probably because you didn't upload them. Make sure to upload the entire google folder in the root and it should start working.
site342605
05-16-2009, 02:49 AM
Thanks Ray.
Upload images folder as recommended and flags are now showing.
Thank you for the quick reply.
J
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.