Hi,

I've been reading through the documentation and I'm struggling using an image file for a map. In the application I'm working on, I'll need to do the following:

1- Have the user upload some image file as a map
2- Plot items on the map from item #1. I'll be able to use some absolute position for the item, where the origin will be the top left corner.

Looking at the documentation, I can supply a URL to some graphic file, but in my case, the user will be putting the graphic somewhere in the upload area of drupal. I'm stuck in that I'm having trouble figuring out how I can use a file that's been uploaded to drupal as the "base layer". I'd really appreciate any help you could provide to point me in the right direction.

The other thing I'd like to know if using this module is the right approach, that is if it works well with images that represent some geographic area but aren't "maps" in that they don't relate to some coordinate on the earth. The zooming / panning / marking is very well done and that it's integrated with an RSS feed is great for what I'm trying to accomplish.

Thanks,
gene

Comments

jpulles’s picture

Assigned: Unassigned » jpulles

Hi Gene,

At http://aardbodem.nl/?q=node/63 you can find an example for using an image. If the image has been uploaded to Drupal, the image url need not start with http://etc but can start with the relative path of the files folder and will be something like 'sites/default/files/your-uploaded-image.png'. However, I never checked this, so I am not certain at this time.

You can use it for images representing a geographic area by explicitly specifying the maxextent and projection parameters.

John.

genesally’s picture

John,

Thanks for the help. I spent quite a bit of time working on this, trying to figure out how all of the parameters worked. This is a really neat module.

Regards,
gene

genesally’s picture

Status: Active » Closed (fixed)