Select to view content in your preferred language

No infowindow after locate task

650
1
02-18-2012 10:36 AM
KeithGanzenmuller
Frequent Contributor
Working on my first page using the this api.
I have a pretty good start using the samples, the two main functions I need, address matching and an infowindow work fine separately.
I have minor problem which only occurs after I use the locate task then immediately try to click the map to display an infowindow. I click the map and nothing happens.
If you pan the map even slightly or zoom back out causing the map to redraw in any way, then the map click and info window work and keep working.
If you zoom out then locate a new address, go to that address, then again...no infowindow on click.

Does the js api use some way, similar to silverlight or others, to turn on and off the draw surface? I was wondering if the map pan activates the surface.
I have a test copy of it running here:
http://70.167.136.51/SalinaBaseMobile/

If you click the map at the start you get an infowindow, go to find and address, then click the map...nothing.

Thanks
KG
0 Kudos
1 Reply
LuciHawkins
Frequent Contributor
Hi Keith,

I had the same problem and then I realized that both were calling for different functions that unfortunately had the same name -  showResults 

I changed the name of my Locator Function to showResultsl  and changed it where it is called out in line below

dojo.connect(locator, "onAddressToLocationsComplete", showResultsl);

Now they are both working!

Hope this helps,

Luci
0 Kudos