techiva / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

When have 2 maps in app, map controls 'settings' on 1st show up on 2nd map, too #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load the example code in a chrome browser
2. Notice that small map_square has controls set to false
3. Hit small map to go to 2nd page. Notice large map
has no controls. Expected controls b/c didn't exclude them.
4. Edit mapapp.complete.js, see line 8:
// comment these 3 controls out
5. Re-run the app, see the controls on map_square
and on map_canvas this time.
6. If allow the default controls on map_square, then
the controls will show up on map_canvas.

What is the expected output? What do you see instead?

Would expect no controls on first map, as indicated (#map_square),
but regular controls on 2nd map (#map_canvas).

Workaround: explicitly set desired controls on 2nd map, or on each map.

This is TMT4 Part 1 - Route Finder.

Sometimes hitting the back button on browser will show that
the small map map_square will have it's position shifted -
maybe due to the seeming connection (in a bad way) between
the two maps.

Original issue reported on code.google.com by libby.ba...@gmail.com on 20 Apr 2012 at 2:47

Attachments:

GoogleCodeExporter commented 8 years ago
The attached code may have 1 type - concerning the addition of controls to 
map_canvas. That is, and extra , where I explicitly set the controls for 
map_canvas.

Original comment by libby.ba...@gmail.com on 21 Apr 2012 at 4:38