PDA

View Full Version : How to display points for ecommerce sales


pam183309
03-30-2009, 09:32 PM
Hi...I am trying to use Pro Maps to display a map of our US Sales locations by City and State. I have the recordset and have setup the Map to use the recordset. Need to resolve a couple of issues:
1. Set the map to 500 x 500 and only a part of the map appears, the rest is solid gray.
2. How to set the map to only show the US, should I set a default to somewhere in the midwest?
3. How can I set the map to show the entire US to start?
4. What is the limit on the number of flags I can display? It does not show more than 20 or so.

Any and all help is very much appreciated!
Thanks in advance!

Ray Borduin
03-31-2009, 08:09 AM
1) do you have an example... most likely you have to update the width somewhere else on the page that may not have been updated properly.

2) It will show only the US if you only enter US addresses... so filter the database... maybe I misunderstood... what is happening now? Often a url example goes a long way in allowing for precise responses to questions.

3) You could add code to do this... either update the line in the existing map include: map.setCenter(new GLatLng(37.4419, -122.1419), 13);
or add your own reference on the page:
wagmp_map_1_obj.setCenter(new GLatLng(37.4419, -122.1419), 13);

Look up more about the .setCenter() method of the map object at google.com

4) We will be updating pro maps to allow for more data points to be plotted very soon. Currently the restriction is based on the api restricitons of Google that allow a certain number of geocode requests per second, minute, hour, etc... so ironically you can sometimes show more points on a slower server.

pam183309
04-07-2009, 10:25 AM
Hi Ray...Thanks so much for your response.
1. I moved the map out of my ssl locked down admin directory (using Security Assist) and the whole map seems to be showing up now. It just takes a long time to load.
2. I set the default city to Kansas City, KS and the zoom level to 4 and I see the desired results
3. Setting the zoom level from 13 to 4 in the lines that refer to map.SetCenter... worked as well.
4. Here are links to two examples:
a. the rs here shows only the top 40 cities and states (A-C in this case). If you wait long enough, I seem to get close to 40: http://www.goldenwestglatt.com/testing/ordersmap.asp
b. the rs in this example should show all records (there are over 100): http://www.goldenwestglatt.com/testing/ordersmap-allcities.asp
5. New question - how can I remove the bubble that shows up upon load on the default location? And, can I make the bubble show up on rollover of the flags?

Thanks again! I think I'm getting close!
Best regards,
pb100

Ray Borduin
04-07-2009, 03:55 PM
if you remove the lines of code that refer to:

marker.openInfoWindowHtml

then no windows will be open by default.