Closed (fixed)
Project:
Mapstraction
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
30 Jun 2009 at 20:35 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bigbob446 commentedI would definitally like this is there any word on a patch?
Comment #2
bigbob446 commentedLet me preface this with saying I know exactly 2 things about drupal. Jack and S#@t and jack just left town. I am a total newbie to drupal and I have never programmed in anything but in C++ and that was a while ago. Never the less I was able to put this together after 12 hours of pounding my head against the wall. The good news is this will:
ADD the ability to set the default map type for a mapstraction view.
Using:
To change the default map type:
1. Go to Your mapstraction view-->Style-->Settings:
2. In the “initial point” box you will find a new selection box called “Map Type”.
3. Select the map type you would like to use as default.
(NOTE: Yeah I know including the map type in Initial Point doesn’t make the most sense, but for some reason every other place I tried to put it didn’t seem to work… feel free to move it. Lol)
Installation:
1. Download the files I attached and use them to replace the files in the mapstraction installation folder. (sites/all/modules/mapstraction)
2. OR do A and B:
A) In the mapstraction folder find the file “mapstraction_style_map.inc”
locate the code (around line 63 to 69):
Insert the following after the above code:
B) In the mapstraction folder find the file “mapstraction.drupal.js”
Locate the code (around line 12 to 13):
Insert the following after the above code:
Posible issues:
When you update the view after making changes to the mapstraction style it seems to take a long time. This could be my computer. However there doesn’t seem to be a performance issue on the site using the page.
Attached Files:
The files attached are replacements for the same files located in the mapstraction module folder.
I hope this helps someone. This is my first post ever so sorry if I have given too much info or too little. Let me know if you have any questions.
PS I made these changes to the 6.x-1.0 version of the module
Comment #3
levelos commentedavailable in the latest 2.x branch