"Map Data" Window obscures Map

126 views
Skip to first unread message

Tyrone Seeley

unread,
Nov 24, 2011, 3:44:33 PM11/24/11
to google-map...@googlegroups.com
Hi all,
 
First post here, I have tried for a few days to find a resolution for this issue but have had no luck.
 
Here is a brief background to this project if you are interested.
 
I am using the Google Maps API to prototype maps integration to a Microsoft product called Dynamics CRM 2011.  This is for a large client who has alredy confirmed that they will be using the Google Maps API.  It will be used for mapping the locations of incidents which they record.  They will obviously purchase the appropriate lisences before this solution goes into production. 
 
I have very limited experience with the Google Maps API, I am primarily a business analyst and am only putting this solution together as a proof of concept, it will be re-developed by a dev team for the production system, I just need to get something that looks functional up and running so that the concept can be demonstrated to stakeholders.
 
Anyway, onto my issue.
 
I am trying to deal with a "Map Data" dialog which pops up load of the map.  It is large, not centred and it dosn't behave like a normal popup, I cannot close it.  What I mean is that when I click on "Close", the text box is selected rather than the dialog being closed.  I had similar problems with the default UI controls before I hid them.
 
I have attached a screen shot of the map embedded in the form with the dialog box appearing to be selected.  I have also attached the source code of my website.  You can download that code and run in in a browser if necessary, the dialog will appear, but is styled differently to how it is when the map is embedded.  I have not included the referenced backend code, the map will still load without it but will probably throw an error when you click.  Unfortunaltey I cannot directly link the web resource which I am IFraming because this solution is hosted on a locked-down development server.
 
Any help with either removing the Map Data dialog, or making it clickable so I can at least close it would be greatlty appreciated.
 
Regards
 
Tyrone.
 
 
 
Maps Screenshot.PNG
dsl_googleMapsAPIWebsite.html

Rossko

unread,
Nov 24, 2011, 7:19:56 PM11/24/11
to Google Maps JavaScript API v3
This line
pushLatLngToCrm(results[0].geometry.location.Na,
results[0].geometry.location.Oa);
looks like someone is trying to use undocumented API internal
properties, it's very bad practice as it will (has?) break
unexpectedly when the property names inevitably change,

Use documented properties or methods, results[0].geometry.location is
a LatLng object
http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingResults
so you use the documented methods
http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLng
to extract e.g. latitude by
results[0].geometry.location.lat()

Apart from that, the attached HTML listing doesn't help much due to
missing dependencies. Link to you live page?

Tyrone Seeley

unread,
Nov 28, 2011, 10:10:59 PM11/28/11
to google-map...@googlegroups.com
Thanks for that, I've fixed up the code.  The HTML should still load without those dependencies, I can kill all references and then run it from Visual Studio.  The geocoding doesn't work but the map still loads as does the annoying "Map Data" dialog which I can't close.

Rossko

unread,
Nov 29, 2011, 6:28:46 AM11/29/11
to Google Maps JavaScript API v3
I don't have Visual Studio so I can't replicate your problem, even if
I were likely to want to copy/paste your code into my environment
(which I'm not)

When you want some help, give a link to your webpage showing the
problem. It doesn't work properly as a groups attachment, I can't
sort out what are your issues and what is due to the google "hosting".

davie

unread,
Nov 29, 2011, 4:23:22 PM11/29/11
to Google Maps JavaScript API v3
Hi
It seems you have two issues here
1) Map not functioning properly
2) Dialog box not behaving
We can help you with 1) but 2) is most probably caused by the Dynamics
CRM 2011 environment.
You should create a demo of the map and host it on one of the free
hosting sites and post a link.

Regards Davie

davie

unread,
Nov 29, 2011, 4:40:24 PM11/29/11
to Google Maps JavaScript API v3
Hi
Just a thought
As you are working in a Microsoft environment it would probably be
more effective to use Bing Maps
You should get more support eg see
http://www.magnetism.co.nz/blog/11-09-16/Displaying_a_Dynamics_CRM_2011_Account_on_a_Bing_Map.aspx

Regards Davie

Tyrone Seeley

unread,
Dec 4, 2011, 8:00:33 PM12/4/11
to google-map...@googlegroups.com
I've removed the references to my back end code which interacts with the CRM form and hosted the website: 


Clicking on the map causes a an alert with the nearest address to the mouse click.

Thanks for the suggestion Davie, I have done a bit of work with Bing Maps in CRM, however in this instance the customer has specifically told us that they want Google Maps.  When I first threw this page together earlier this year it worked fine, I'm not sure why I am having to deal with this Map Data window and messed up controls now...

Tyrone Seeley

unread,
Dec 4, 2011, 8:02:19 PM12/4/11
to google-map...@googlegroups.com
Oh and in case you are wondering, I have just hard coded the position of the marker to "Queen Street, Auckland, New Zealand".  When it's working within CRM it will grab the address from a form and set that marker accordingly.

Chris Broadfoot

unread,
Dec 4, 2011, 8:56:46 PM12/4/11
to google-map...@googlegroups.com
Hi Tyrone,

That page redirects to another page that says:

"You are seeing this page because the system administrator of 000webhost.com is currently checking this website for malicious content. This redirect page will be removed once we finish manually checking all files on this account. Since we check over 100 websites per day, it can take about 2-4 hours to complete. If you are the owner of this website, you will get an email confirmation once it's done. If you are a visitor, please come back later."

Chris

--


On Mon, Dec 5, 2011 at 12:00 PM, Tyrone Seeley <tyrone...@gmail.com> wrote:
http://geocoder.hostoi.com/map.html

Tyrone Seeley

unread,
Dec 4, 2011, 9:08:41 PM12/4/11
to google-map...@googlegroups.com
Thanks for the heads up.

Before I posted the link I tested that page on another computer and it was fine, but when I look now I get the same redirect.  I guess it's since been flagged for review and we just have to wait until it is cleared.

Tyrone Seeley

unread,
Dec 5, 2011, 6:35:51 PM12/5/11
to google-map...@googlegroups.com
Now I'm getting more confused.  Yesterday I tested this page in both IE9 and Chrome on two different machines and they were all identical. Today I open the link and the map is perfect in Chrome, but still has the same problems in IE9.

Andrew Leach

unread,
Dec 5, 2011, 6:45:31 PM12/5/11
to google-map...@googlegroups.com

Make sure you're seeing the same version. Clear the IE cache (or force
a full refresh of the page). If that doesn't work, no idea I'm afraid
-- and I don't have IE9 to see.

Reply all
Reply to author
Forward
0 new messages