Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am creating a FrameCloud popup instance and adding to the map using the following code:

  var popup = new OpenLayers.Popup.FramedCloud("popup",
                point,
                null,
                '<div> test context </div>',   
                null, true);

            map.addPopup(popup);

Popup is displayed at the correct location but with a transparent background probably because I am using a local copy of OpenLayers.js instead of the public version. For local deployment, where do I put the resources found under the img folder required by OpenLayers?

share|improve this question

2 Answers 2

Answer lies in readme.md available as part of the OpenLayer download package. Local deployment requires the theme and img directories be deployed in same directory as OpenLayers.js. Not really what I want to do but that was the missing link.

share|improve this answer

if you want to overwrite image path, you can use this code with adding it to begining of your script.

OpenLayers.ImgPath = "img/";

i hope it helps you...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.