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'm using Phonegap 2.6 and OpenLayers 2.12 for my mobile application.

Feature: in a panel (jQuery Mobile), I'm clicking in a checkbox and georeferenced images are displayed in the map that is already loaded. These images fits with that we call "blocks" in the map.

With Firefox: usually, I'm working with Firefox at the beggining of developing stage. So the feature is working, the OpenLayers image is well created and displayed on the map. Working with Firefox

With the device: that doesn't work. Instead it draws a polygon around each image. Not working on device

The method that provokes that is addLayers (here is the documentation: ....)

Do you have any idea of what happens? The only difference between the working and not working case, is that with the device my code is encapsulate with phonegap, but I have no clue why that should be a problem.


share|improve this question

Ok...I found the issue

When I test with the simulator, I can see question mark in these polygons.

So it just mean that openlayers can not find the image with the given path :)

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.