AnantLabs / jmaps

Automatically exported from code.google.com/p/jmaps
MIT License
0 stars 0 forks source link

jMaps initialization and directions search issues #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copy code from API documentation
2. Loading page, requesting directions

What is the expected output? What do you see instead?
When the page loads I expect to see a map with "43.659489413607645,
-70.26037931442261" as the center coordinates.
When I enter directions, I expect to see a map with markers and text
directions.

The map never renders properly.  Parts are greyed out.
When I search for directions, the directions text come in but the map does
not render to the location.  I get a world view of hawaii & the pacific
ocean.  When I first load the page, and every time I request directions, I
see an error in the address field: "An unknown error occurred."

What version of the product are you using? On what operating system?
jQuery 1.2.6, jmap-r64.js

Please provide any additional information below.
Image jMapsHelp is the map loaded using the code copied from the
documentation exactly.
Image jMapsHelp1 is the map when I set the lat/long to be at
43.659489413607645, -70.26037931442261
Image jMapsHelp2 is the map I get when I enter '24 preble street portland
me to 168 Milton st portland me'
Image jMapsHelp3 shows the directions which do come up correctly.

Original issue reported on code.google.com by GregGoul...@gmail.com on 24 Nov 2008 at 9:42

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by digitals...@gmail.com on 27 Nov 2008 at 9:10

GoogleCodeExporter commented 9 years ago
Hi there,

In regards to the query with the coordinates, please email me directly and we 
can
discuss this.  I've added the CheckResize function to the code, so you can now 
call
it via jQuery('#map').jmap('CheckResize'); and it will automatically update the 
map
tiles.

Original comment by digitals...@gmail.com on 27 Nov 2008 at 9:47

GoogleCodeExporter commented 9 years ago
I'm still getting the above mentioned error. Whenever i search for directions, 
I get
the 'unknown error occurred' err msg. I followed your example as it is in the
mapifies site for the directions search. What should be modified to eliminate 
this error?
The code is the same as in:
http://map.ifies.org/examples/google/Google.Address.SearchDirections.html

Your help is greatly appreciated. Thanks for your time

Anu

Original comment by anuvenka...@gmail.com on 6 Mar 2009 at 6:20

GoogleCodeExporter commented 9 years ago
You have to supply Long/Lat coordinates when you initialize the map. 

var streetMapCenter = [43.65782835796165, -70.26037931442261];

jQuery('#map1')
.jmap('init', {'mapType':G_NORMAL_MAP , 'mapCenter':streetMapCenter})

Original comment by GregGoul...@gmail.com on 6 Mar 2009 at 6:30

GoogleCodeExporter commented 9 years ago
I have exactly the same problem than GregGould1000
The map never renders properly.  Some parts are greyed out (always at right).
Also, map is not centered on the coordinates...

I'm using r-72
Have you an idea ?

Original comment by mehlah...@gmail.com on 23 Jun 2009 at 2:40

Attachments: