Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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

Answer lies in 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


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.