Hi,

I am trying to add a track on map to my site and have added trackfield for that purpose, however it does not add a trach in others displays than thumbnail. Can not figure out why. I've been adding track in all possible ways (kml,gpx, lat-lon) same effect.
Any thoughts?

z.

Comments

zosta’s picture

Title: Trackfield does not plot tracks on gmap if anything else than "thumbnail" is chosen in display field. » Trackfiels does not plot tracks on gmap if anything else than "thumbnail" is chosen in display field.
raintonr’s picture

Title: Trackfiels does not plot tracks on gmap if anything else than "thumbnail" is chosen in disply field. » Trackfiels does not plot tracks on gmap if anything else than "thumbnail" is chosen in display field.

Have you installed/configured the GMAP module?

zosta’s picture

Of course. I use Gmap to show location markers for nodes and taxonomy. That works fine. I just wanted to add track display on maps and got stuck with that. As I described above if I switch display to "thumbnails" I get the thumbnail size map with track on but after changing that to "default", "640" or preview in the "Disaply fields" I get the map in the proper size but the track is gone.

What could be the reason?

z.

zosta’s picture

It is hard to believe that I am the only one who has that problem. Please help. I was trying a workaroung with openlayers but it is not as convenient as the trackfield would be if it worked...

zosta’s picture

StatusFileSize
new78.21 KB
new95.08 KB
new105.76 KB

Adding screendumps to illustrate the issue.

raintonr’s picture

Are there any errors in your Drupal or HTTP logs?

Can you supply a sample of the HTML that appears where the map is supposed to be?

zosta’s picture

StatusFileSize
new65.42 KB
new63.62 KB

This is the HTML for the page with thumbnail display when the track is on: html_track_thumbnail.txt
and with Preview display when the track is gone: html_track_preview.txt
************************************************************

When it comes to error messages it looks a bit strange. I am getting "access denied" entries for anonymous user when I access content type edit or report even though I am logged on and can access the pages without any trouble.

zosta’s picture

Title: Trackfiels does not plot tracks on gmap if anything else than "thumbnail" is chosen in display field. » Trackfield does not plot tracks on gmap if anything else than "thumbnail" is chosen in display field.
zosta’s picture

Title: Trackfiels does not plot tracks on gmap if anything else than "thumbnail" is chosen in display field. » Trackfield does not plot tracks on gmap if anything else than "thumbnail" is chosen in display field.
StatusFileSize
new21.04 KB
new22.73 KB

Uploading new html files without all the admin menu..
track_no.txt - preview, no track
track_yes.txt - thumbnail, track visible

raintonr’s picture

Re: #9. What version of Gmap are you using?

In a working example your trackmap field should have a CDATA section following, something like the below... but I don't see that rendered in your HTML output:

<div class="field field-type-trackmap field-field-track-map"> 
    <div class="field-items"> 
            <div class="field-item odd"> 
                    <div style="width: 480px; height: 360px;" id="gmap-trackfield_map_7617-gmap0" class="gmap-control gmap-gmap gmap gmap-map gmap-trackfield_map_7617-gmap">Javascript is required to view this map.</div><script type="text/javascript"> 
/* <![CDATA[ */
jQuery.extend(true, Drupal, { settings: { "gmap": { "trackfield_map_7617": { "width": "480px", "height": "360px", "zoom": 16, "maxzoom": "14", "controltype": "Small", "align": "None", "maptype": "Map", "mtc": "standard", "baselayers": { "Map": 1, "Satellite": 1, "Hybrid": 1 }, "styles": { "line_default": [ "0000ff", "5", "45", "", "" ], "poly_default": [ "000000", "3", "25", "ff0000", "45" ] }, "line_colors": [ "#00cc00", "#ff0000", "#0000ff" ], "behavior": { "locpick": false, "nodrag": 0, "nokeyboard": 1, "nomousezoom": 0, "nocontzoom": 0, "autozoom": 0, "dynmarkers": 0, "overview": 0, "collapsehack": 1, "scale": 0, "extramarkerevents": false, "clickableshapes": false }, "markermode": "0", "id": "trackfield_map_7617", "shapes": [ { "type": "line", "style": [ "0000bb", "2", "50" ], "points": [ [ -33.78072, 151.25876 ], [ -33.78096, 151.25861 ], [ -33.78117, 151.25846 ], [ -33.78158, 151.25819 ], [ -33.78274, 151.26102 ], [ -33.78444, 151.26067 ] ] } ], "longitude": "151.259601", "latitude": "-33.782576", "markers": [ { "options": [  ], "longitude": "151.258760 ", "latitude": "-33.780715", "markername": "route", "offset": 0, "text": "\x3cdiv class=\"gmap-popup\"\x3e\x3c/div\x3e" }, { "options": [  ], "longitude": "151.260670", "latitude": " -33.784436", "markername": "route", "offset": 1, "text": "\x3cdiv class=\"gmap-popup\"\x3e\x3c/div\x3e" } ] } } } });
/* ]]> */
</script> 
        </div> 
        </div> 
</div>
zosta’s picture

ver. 6.x-1.1 which I think is the latest. Should I try to revert to earlier version?

zosta’s picture

I have checked the source and the CDATA is there, but track still not plotted:

<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "admin_menu": { "margin_top": 1 }, "dhtmlMenu": { "slide": "slide", "siblings": "siblings", "children": "children", "clone": "clone", "relativity": 0, "doubleclick": 0 }, "googleanalytics": { "trackOutgoing": 1, "trackMailto": 1, "trackDownload": 1, "trackDownloadExtensions": "7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip" }, "lightbox2": { "rtl": "0", "file_path": "/(\\w\\w/)sites/default/files", "default_image": "/sites/all/modules/lightbox2/images/brokenimage.jpg", "border_size": 10, "font_color": "000", "box_color": "fff", "top_position": "", "overlay_opacity": "0.8", "overlay_color": "000", "disable_close_click": 1, "resize_sequence": 0, "resize_speed": 400, "fade_in_speed": 400, "slide_down_speed": 600, "use_alt_layout": 0, "disable_resize": 0, "disable_zoom": 0, "force_show_nav": 0, "show_caption": 0, "loop_items": 0, "node_link_text": "", "node_link_target": 0, "image_count": "Zdjęcie !current z !total", "video_count": "Video !current z !total", "page_count": "Strona !current z !total", "lite_press_x_close": "press \x3ca href=\"#\" onclick=\"hideLightbox(); return FALSE;\"\x3e\x3ckbd\x3ex\x3c/kbd\x3e\x3c/a\x3e to close", "download_link_text": "", "enable_login": false, "enable_contact": false, "keys_close": "c x 27", "keys_previous": "p 37", "keys_next": "n 39", "keys_zoom": "z", "keys_play_pause": "32", "display_image_size": "preview", "image_node_sizes": "(\\.thumbnail)", "trigger_lightbox_classes": "", "trigger_lightbox_group_classes": "img.inline,img.ImageFrame_image,img.ImageFrame_none,img.image-img_assist_custom,img.thumbnail, img.image-thumbnail", "trigger_slideshow_classes": "", "trigger_lightframe_classes": "", "trigger_lightframe_group_classes": "", "custom_class_handler": "lightbox", "custom_trigger_classes": "", "disable_for_gallery_lists": 1, "disable_for_acidfree_gallery_lists": true, "enable_acidfree_videos": true, "slideshow_interval": 5000, "slideshow_automatic_start": true, "slideshow_automatic_exit": true, "show_play_pause": true, "pause_on_next_click": false, "pause_on_previous_click": true, "loop_slides": false, "iframe_width": 800, "iframe_height": 600, "iframe_border": 1, "enable_video": 0 }, "gmap_markermanager": { "borderPadding": "256", "maxZoom": "4", "trackMarkers": 0, "markerMinZoom": "4", "markerMaxZoom": "0" }, "gmap": { "trackfield_map_15": { "width": "800px", "height": "600px", "zoom": 16, "maxzoom": "14", "controltype": "Small", "align": "None", "maptype": "Map", "mtc": "standard", "baselayers": { "Map": 1, "Satellite": 1, "Hybrid": 1, "Physical": 1 }, "styles": { "line_default": [ "0000ff", "5", "45", "", "" ], "poly_default": [ "000000", "3", "25", "ff0000", "45" ], "highlight_color": "ff0000" }, "line_colors": [ "#00cc00", "#ff0000", "#0000ff" ], "behavior": [  ], "markermode": "2", "id": "trackfield_map_15", "line": "#0000bb/2/50:36.07954952145647,-112.2550785337791 + 36.08117083492122,-112.2549277039738 + 36.08260761307279,-112.2552505069063 + 36.08395660588506,-112.2564540158376 + 36.08511401044813,-112.2580238976449 + 36.08584355239394,-112.2595218489022 + 36.08612634548589,-112.2608216347552 + 36.08626019085147,-112.262073428656 + 36.08621519860091,-112.2633204928495 + 36.08627897945274,-112.2644963846444 + 36.08649599090644,-112.2656969554589", "longitude": "-112.260312", "latitude": "36.083023", "overlay": [  ] } } });
//--><!]]>
zosta’s picture

Issue tags: +jQuery

I have started from scratch with a new site and was adding modules I use in my production site one by one:
gmap,
ckk,
trackfield
location
admin_menu
captcha
cck
ctools
dhtml_menu
jquery_ui

The track disappeared after adding jquery_ui even without enabling it. I suspect a conflict here.

zosta’s picture

The above must have been a random problem. I tried the same again and trackfield worked OK with jquery_ui that time.

Anyway, I have found the cause of the problem!
I had Gmap Overlays, which comes with Gmap Addons module, turned on. When I switched that off, tracks came back.

Maybe that will be helpful for others.

zosta’s picture

Issue tags: +gmap addons
raintonr’s picture

Title: Trackfield does not plot tracks on gmap if anything else than "thumbnail" is chosen in display field. » Trackfield Map is not compatible with Gmap Addons
Component: User interface » Code
raintonr’s picture

Title change.

andrewm63au’s picture

I'm having the same problem. I changed to thumbnail and the track appeared, any other display type the track was missing. Is there a solution? I think I also have the Gmap add-ons installed.

andrewm63au’s picture

I'm getting another error message
This version is incompatible with the 6.35 version of Drupal core.

Is there a version that is compatible with 6.35?