Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map freeze if markers has Service call assigned #24

Closed
gubi opened this issue Jul 8, 2014 · 1 comment
Closed

Map freeze if markers has Service call assigned #24

gubi opened this issue Jul 8, 2014 · 1 comment
Assignees
Milestone

Comments

@gubi
Copy link
Member

gubi commented Jul 8, 2014

The function $.add_geojson_cluster has the Service query for load marker's tooltip contents that cause map crash:

markers.on("click", function(m) {
        var objp = {};
        objp.storage_group = "results";
        objp[kAPI_REQUEST_OPERATION] = kAPI_OP_GET_UNIT;
        objp.parameters = {};
        objp.parameters[kAPI_REQUEST_LANGUAGE] = lang;
        objp.parameters[kAPI_REQUEST_PARAMETERS] = {};
        objp.parameters[kAPI_REQUEST_PARAMETERS][kAPI_PARAM_LOG_REQUEST] = "true";
        objp.parameters[kAPI_REQUEST_PARAMETERS][kAPI_PARAM_ID] = m.layer.feature.properties.id;
        objp.parameters[kAPI_REQUEST_PARAMETERS][kAPI_PARAM_DATA] = kAPI_RESULT_ENUM_DATA_FORMAT;
        objp.parameters[kAPI_REQUEST_PARAMETERS][kAPI_PARAM_DOMAIN] = m.layer.feature.properties.domain;
        $.ask_to_service(objp, function(marker_content) {
                $.each(marker_content.results, function(domain, rows) {
                        //$("#marker_content").find(".modal-title").html(rows[7].name + " " + domain);
                        $("#marker_content").find(".modal-body").html($.parse_row_content(rows));
                });
                $("#marker_content").modal("show");
                $("#marker_content a.text-info").popover({container: "body", placement: "auto", html: "true", trigger: "hover"});
        });
});
@gubi gubi added this to the Map milestone Jul 8, 2014
@gubi gubi added bug labels Jul 8, 2014
@gubi gubi self-assigned this Jul 8, 2014
@gubi gubi changed the title Map freeze with tooltip assigned Map freeze if markers have Service call assigned Jul 8, 2014
@gubi gubi changed the title Map freeze if markers have Service call assigned Map freeze if markers has Service call assigned Jul 8, 2014
@gubi
Copy link
Member Author

gubi commented Jul 11, 2014

Fixed as ddf4af4

@gubi gubi closed this as completed Jul 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant