close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Centering the map

Thread began 2/14/2012 6:03 pm by gb261593 | Last modified 2/17/2012 3:58 am by gb261593 | 810 views | 4 replies |

gb261593

Centering the map

I am using php/mysql. I have a recordset showing a number of locations scattered around quite a wide area. I would like the map to open centered on a convenient physical location (a specific town) but not any of the recordset locations.
Is this possible?

Sign in to reply to this post

Jason ByrnesWebAssist

in addition to adding the recordset loop in the map, add another static address, leave out the street address and enter the City, state, country info for where you would like the map to be initially centered, at set that address as the default.

Sign in to reply to this post

gb261593

Flag showing

Hi

I've done what you said and it is all OK except for the fact that I get a flag for the centered position. I think it might be due to the code in the wagmp file:

var address_1 = {
street: '',
city: 'Richmond',
state: 'North Yorkshire',
zip: 'DL10 4QN',
country: '',
infowindow: 'default',
infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><?php echo str_replace("'", "\'", "<strong>Address:</strong><br />Victoria Road<br />Richmond, North Yorkshire DL10 4QN"); ?></span>',
full: 'Richmond, North Yorkshire, DL10 4QN',
isdefault: true,
addressType: 'address',
loop: '',
latitude: '',
longitude: '',
markerStyle: 'Google Traditional (flat)',
markerColor: 'Pacifica'
};

Can I amend this to get rid of the centered location flag?

Many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

just above the address section is a section to create the icon named:
var icon_1 = new GIcon();

comment the first 2 items in the Icon array:
//icon_1.image = 'plugins/google_javascript/images/traditionalflat_pacifica.png';
//icon_1.shadow = 'google_javascript/images/traditionalflat_shadow.png';

Sign in to reply to this post

gb261593

Thank you

That works - many thanks

Sign in to reply to this post

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...