Convert WMS Layers into Image is not Working but it's working for WFS

Error in master's thesis, I do not know what to do

How to find the largest number(s) in a list of elements, possibly non-unique?

PTIJ: Why do we make a Lulav holder?

How can an organ that provides biological immortality be unable to regenerate?

Unfrosted light bulb

Does convergence of polynomials imply that of its coefficients?

Can "few" be used as a subject? If so, what is the rule?

Why does Surtur say that Thor is Asgard's doom?

What are the consequences of changing the number of hours in a day?

10 year ban after applying for a UK student visa

Imaginary part of expression too difficult to calculate

UK Tourist Visa- Enquiry

Asserting that Atheism and Theism are both faith based positions

Do I need an EFI partition for each 18.04 ubuntu I have on my HD?

Can other pieces capture a threatening piece and prevent a checkmate?

Is VPN a layer 3 concept?

PTIJ: Which Dr. Seuss books should one obtain?

What is it called when someone votes for an option that's not their first choice?

Single word to change groups

How to balance a monster modification (zombie)?

When should a starting writer get his own webpage?

Why I don't get the wanted width of tcbox?

What kind of footwear is suitable for walking in micro gravity environment?

Recursively updating the MLE as new observations stream in



Convert WMS Layers into Image is not Working but it's working for WFS














0















function CaptureImage()
{
map.once('postcompose', function(event)
{
console.log(event);
var canvas = event.context.canvas;
console.log(canvas);
if (navigator.msSaveBlob)
{



                navigator.msSaveBlob(canvas.msToBlob(), 'map.png'); 

}
else
{

canvas.toBlob(function(blob)
{

var imgData= new Image();
imgData = canvas.toDataURL("png");

// Later I'm saving this image, but this is working for
WFS but not WMS Layers ;
});
}

});


}









share























  • Please do help this one out. I'm stuck for WMS Layers and it's working fine for WFS

    – Ranjith Kumar Raama
    1 min ago
















0















function CaptureImage()
{
map.once('postcompose', function(event)
{
console.log(event);
var canvas = event.context.canvas;
console.log(canvas);
if (navigator.msSaveBlob)
{



                navigator.msSaveBlob(canvas.msToBlob(), 'map.png'); 

}
else
{

canvas.toBlob(function(blob)
{

var imgData= new Image();
imgData = canvas.toDataURL("png");

// Later I'm saving this image, but this is working for
WFS but not WMS Layers ;
});
}

});


}









share























  • Please do help this one out. I'm stuck for WMS Layers and it's working fine for WFS

    – Ranjith Kumar Raama
    1 min ago














0












0








0








function CaptureImage()
{
map.once('postcompose', function(event)
{
console.log(event);
var canvas = event.context.canvas;
console.log(canvas);
if (navigator.msSaveBlob)
{



                navigator.msSaveBlob(canvas.msToBlob(), 'map.png'); 

}
else
{

canvas.toBlob(function(blob)
{

var imgData= new Image();
imgData = canvas.toDataURL("png");

// Later I'm saving this image, but this is working for
WFS but not WMS Layers ;
});
}

});


}









share














function CaptureImage()
{
map.once('postcompose', function(event)
{
console.log(event);
var canvas = event.context.canvas;
console.log(canvas);
if (navigator.msSaveBlob)
{



                navigator.msSaveBlob(canvas.msToBlob(), 'map.png'); 

}
else
{

canvas.toBlob(function(blob)
{

var imgData= new Image();
imgData = canvas.toDataURL("png");

// Later I'm saving this image, but this is working for
WFS but not WMS Layers ;
});
}

});


}







openlayers wms wfs





share












share










share



share










asked 2 mins ago









Ranjith Kumar RaamaRanjith Kumar Raama

12




12













  • Please do help this one out. I'm stuck for WMS Layers and it's working fine for WFS

    – Ranjith Kumar Raama
    1 min ago



















  • Please do help this one out. I'm stuck for WMS Layers and it's working fine for WFS

    – Ranjith Kumar Raama
    1 min ago

















Please do help this one out. I'm stuck for WMS Layers and it's working fine for WFS

– Ranjith Kumar Raama
1 min ago





Please do help this one out. I'm stuck for WMS Layers and it's working fine for WFS

– Ranjith Kumar Raama
1 min ago










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f315917%2fconvert-wms-layers-into-image-is-not-working-but-its-working-for-wfs%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f315917%2fconvert-wms-layers-into-image-is-not-working-but-its-working-for-wfs%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Щит и меч (фильм) Содержание Названия серий | Сюжет |...

Венесуэла на летних Олимпийских играх 2000 Содержание Состав...

Meter-Bus Содержание Параметры шины | Стандартизация |...